[PHP] help in reversing an array

2004-12-25 Thread mail.pmpa
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:

RE: [PHP] help in reversing an array

2004-12-25 Thread Mike
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:

Re: [PHP] help in reversing an array

2004-12-25 Thread M. Sokolewicz
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()?