help in reversing an array
| From: | mail.pmpa | Date: | Sat, 25 Dec 2004 16:47:46 +0000 |
| Subject: | help in reversing an array | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-205166@lists.php.net to get a copy of this message | ||
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:
$array[0]='Hardware';
$array[1]='Motherboards';
$array[2]='Single processor';
$array[3]='Socket A';
Which function amongst the available should I use?
Thank you.
Pedro Almeida.