I have a string variable which also has some PHP code in it. The code in the string var is getting run whenever I am displaying the string with echo. Is there anything (function) which can escape the meaning of PHP code while I use it with string?
Please help?
Using single quotes
will return foo is $foo
For more references: http://php.net/manual/en/function.echo.php