I am working on some scripts that create PHP files in PHP. I am having a hard time thinking of a way to put PHP code into a file without PHP running it like it was code. For example
$var = 'Hello There';
echo '$var is a variable';
I need this to ouput $var is a variable, not Hello There is a variable. How do I make it so I could output un-processed PHP code either to the screen or a file?