Skip to content

Instantly share code, notes, and snippets.

@glennpratt
Created March 12, 2012 15:27
Show Gist options
  • Select an option

  • Save glennpratt/2022640 to your computer and use it in GitHub Desktop.

Select an option

Save glennpratt/2022640 to your computer and use it in GitHub Desktop.
○ → php -a
Interactive shell
php > $var = array();
php > $var[NULL] = "NULL";
php > $var[0] = "0";
php > $var[FALSE] = "FALSE";
php > $var[''] = "''";
php > var_dump($var);
array(2) {
[""]=>
string(2) "''"
[0]=>
string(5) "FALSE"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment