I am trying to create a math equation inside a variable but I am struggling to achieve the desired result.
On one php page I have this:
$x = "date('Y')";
$y = "1989";
$description = "In this classic lecture which was delivered over $x - $y years ago, etc etc.....";
On my main page I have linked to the above and also $description but the result I am getting is:
In this classic lecture which was delivered over date('Y') - 1989 years ago,
I want to create a variable so I don't need to go back every year and change the description. Is this possible?
Robert