Created
September 13, 2016 14:11
-
-
Save petebarnett/fb41136b2e65e097c20be5b4a68c8d54 to your computer and use it in GitHub Desktop.
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 | |
try { | |
new RecursiveArrayIterator(NULL); | |
} | |
catch(Exception $e) { | |
print $e->getMessage(); | |
} | |
// prints "Passed variable is not an array or object, using empty array instead" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment