Created
May 13, 2012 16:33
-
-
Save nissuk/2689205 to your computer and use it in GitHub Desktop.
PHP: eval
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
eval('echo 1;'); // ok | |
eval('<?php echo 2; ?>'); // parse error | |
eval('?><?php echo 3;'); // ok | |
eval('?><?php echo 4; ?>'); // ok | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment