PHP 4.0 Bug #6684 Updated: array_reverse() should maintain indices
| From: | jimw@php.net | Date: | Tue, 23 Jan 2001 01:22:39 +0000 |
| Subject: | PHP 4.0 Bug #6684 Updated: array_reverse() should maintain indices | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-44764@lists.php.net to get a copy of this message | ||
ID: 6684
Updated by: jimw
Reported By: waldschrott@php.net
Old-Status: Analyzed
Status: Closed
Bug Type: Documentation problem
Assigned To:
Comments:
done.
Previous Comments:
---------------------------------------------------------------------------
[2000-09-13 03:30:24] waldschrott@php.net
verified, works
need docu then
---------------------------------------------------------------------------
[2000-09-13 03:09:38] andrei@php.net
Done in CVS.
---------------------------------------------------------------------------
[2000-09-12 12:40:32] waldschrott@php.net
unfortunately array_reverse doesn´t maintain array indicies and because it´s not that trivial to
reconstruct them afterwards it would be better to keep them. If you only want the values then you
can user array_values() on the returned array.
If not changed completely (backwards compatibilty) it shoul d get another parameter indication keys
should be preserved.
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=6684