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
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
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
3 matches
Mail list logo