Created
May 21, 2014 14:32
-
-
Save jwerle/dfa3a9b52a43eec699dd to your computer and use it in GitHub Desktop.
php interpolated buffer values
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
<? $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; ?> |
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 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