PHP: how do you specify that you do not want a string evaluated?

snardly

New Member
I have some php code in a database like so \[code\]$x = "<?php some code here ?>";\[/code\]but I want to output that whole line to the browser without php evaluating it. Right now it is evaluating it unfortunately. I thought about escaping it but that didn't work. How might a person accomplish this?ThanksEDIT:\[code\]<?phpecho '<? hey ?>';echo "<dog dog>";?>\[/code\]if I run that code the dog dog tag shows up in the browser source code where as \[code\]<? hey ?>\[/code\] does not. It seems like it would still be evaluating it.Edit, got the answer, thanks everyone.
 
Back
Top