Re: [PHP] re-ordering keys in an array

2003-01-21 Thread David T-G
Jason, et al -- ...and then Jason k Larson said... % % There are many pre-defined functions to manipulate the sort order of % arrays and it's keys. However sometimes, to fit special needs, you just % have to do it manually. Here's the useful PHP reference manual links to % better understand

Re: [PHP] re-ordering keys in an array

2003-01-21 Thread Jason k Larson
There are many pre-defined functions to manipulate the sort order of arrays and it's keys. However sometimes, to fit special needs, you just have to do it manually. Here's the useful PHP reference manual links to better understand what's available. http://www.php.net/manual/en/ref.array.php

[PHP] re-ordering keys in an array

2003-01-21 Thread David T-G
Hi, all -- If I have an associative array $a like Array ( [t] => temp1 [u] => ugh [m] => moo ) is there any way to re-order the keys so that foreach (array_keys($a) as $k) { print "$k\n" ; } will print t m u for me? At the moment it seems my only option is s