Search found 1 match
- Sun Apr 12, 2009 11:46 am
- Forum: PHP - Code
- Topic: Associaive array insert order & iteration
- Replies: 2
- Views: 188
Associaive array insert order & iteration
Easy n00b question here: Does the iteration order of an Associative array always match the insertion order? For example: $name = array('jim' => 'smith', 'bob' => 'jones', 'tom' => 'baker'); foreach($name as $first => $last) { print "$first $last\n"; } Am I always guaranteed to see? j...