Skip to content

Instantly share code, notes, and snippets.

@langsharpe
Created March 2, 2011 09:53
Show Gist options
  • Save langsharpe/850709 to your computer and use it in GitHub Desktop.
Save langsharpe/850709 to your computer and use it in GitHub Desktop.
PHP example of default array order
<?php
$a[1] = 'one';
$a[0] = 'zero';
foreach($a as $value) {
print $value . "\n";
}
?>
lang@virtualbox1:~/arrays$ php array.php
one
zero
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment