Hi all and Merry Christmas!!
I am having some trouble reversing the order of an array.
I have this array:
$array[0]='Socket A';
$array[1]='Single processor';
$array[2]='Motherboards';
$array[3]='Hardware';
and I want to do a simple reverse of the content like this:
I am having some trouble reversing the order of an array.
[snip]
Which function amongst the available should I use?
rsort() is what you're looking for.
http://us2.php.net/manual/en/function.rsort.php
-M
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Mike wrote:
I am having some trouble reversing the order of an array.
[snip]
Which function amongst the available should I use?
rsort() is what you're looking for.
http://us2.php.net/manual/en/function.rsort.php
-M
what's wrong with array_reverse()?
3 matches
Mail list logo