Created
December 18, 2014 22:46
-
-
Save aceat64/9f9bd704340f1390cdc2 to your computer and use it in GitHub Desktop.
Null vs Empty Arrays
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 -a | |
Interactive mode enabled | |
php > var_dump(array(null)); | |
array(1) { | |
[0]=> | |
NULL | |
} | |
php > var_dump(array()); | |
array(0) { | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment