I have this.php:
<?php
//some code
?>
Here goes the text that is plain text.
Whenever you use <?php in a .php file it precedes the php code that will be parsed and interpreted by php.
As you may have guessed, this file gives an error and refuses to run correctly. I don't want to use HTML entities as the result file isn't used as HTML. What are my options other than storing the string <?php in a variable?
<?phponce for PHP code and once "plain" is ambiguous. Does whatever you're using the result as not support escape sequences of any sort?