Skip to content

Instantly share code, notes, and snippets.

@nissuk
Created May 13, 2012 16:33
Show Gist options
  • Save nissuk/2689205 to your computer and use it in GitHub Desktop.
Save nissuk/2689205 to your computer and use it in GitHub Desktop.
PHP: eval
<?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