> No. What language has ordered hashes?
PHP (*shudder*). Since PHP only has a single array type that supports
both sequential and keyed accessing any string keys remain in order.
It can be handy as PHP's array construction is needlessly verbose, for
example in Ruby I'd do this:
[['item1', 1],['item2',2]]
In PHP it'd look like:
array(array('item1', 1), array('item2', 2));
or
array('item1'=>1, 'item2'=>2);
Which is easier to read?
--
Phillip Hutchings
http://www.sitharus.com/