i want to be able to write some code that would contain html and php and then save it in a variable and print it where i need it but i dont know to make the php code inside the variable go through the php compiler before beeing send to the browser.
example:
$var='echo "Hello World"';
echo $var;
output is echo "Hello World".
but i want the output to be Hello World.
Can someone explain me how to do this. thanks.