Skip to content

Instantly share code, notes, and snippets.

@mmcnickle
Created November 2, 2012 15:57
Show Gist options
  • Save mmcnickle/4002237 to your computer and use it in GitHub Desktop.
Save mmcnickle/4002237 to your computer and use it in GitHub Desktop.
php > $x = array();
php > $x[8.7] = "hi";
php > var_dump($x);
array(1) {
[8]=>
string(2) "hi"
}
php > $x["8"] = "hello";
php > var_dump($x);
array(1) {
[8]=>
string(5) "hello"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment