note 13350 added to function.array-reverse.php
| From: | nospam dot nass at btinternet dot com dot nospam | Date: | Tue, 12 Jun 2001 22:08:42 +0000 |
| Subject: | note 13350 added to function.array-reverse.php | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-14435@lists.php.net to get a copy of this message | ||
For a similar functionality in PHP3, use something like:
for ($i = count ($foo) - 1 ; $i >= 0; $i-- ) {
do something here
}
... where $foo is the array that you want to reverse.
http://www.php.net/manual/en/function.array-reverse.php