Skip to content

Instantly share code, notes, and snippets.

@aceat64
Created December 18, 2014 22:46
Show Gist options
  • Save aceat64/9f9bd704340f1390cdc2 to your computer and use it in GitHub Desktop.
Save aceat64/9f9bd704340f1390cdc2 to your computer and use it in GitHub Desktop.
Null vs Empty Arrays
$ 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