Skip to content

Instantly share code, notes, and snippets.

@jwerle
Created May 21, 2014 14:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jwerle/dfa3a9b52a43eec699dd to your computer and use it in GitHub Desktop.
Save jwerle/dfa3a9b52a43eec699dd to your computer and use it in GitHub Desktop.
php interpolated buffer values
<? $a = array(); ?>
// should yield `null'
"unset element in array" = <?= json_encode($a['foo']); ?>
// should yield nothing
"false" = <?= false; ?>
// should yield `1'
"true" = <?= true; ?>
// should yield nothing
"null" = <?= NULL; ?>
√ php out.php
// should yield `null'
"unset element in array" = null
// should yield nothing
"false" =
// should yield `1'
"true" = 1
// should yield nothing
"null" =
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment