Skip to content

Instantly share code, notes, and snippets.

@8vius
Created March 2, 2012 14:57
Show Gist options
  • Save 8vius/1958938 to your computer and use it in GitHub Desktop.
Save 8vius/1958938 to your computer and use it in GitHub Desktop.
<?php
$array = array(
"foo" => "bar",
"bar" => "foo",
100 => -100,
-100 => 100,
);
var_dump($array);
?>
Outputs:
array(4) {
["foo"]=>
string(3) "bar"
["bar"]=>
string(3) "foo"
[100]=>
int(-100)
[-100]=>
int(100)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment