PHP 4.0 Bug #6684 Updated: array_reverse() should maintain indices

From: Date: Wed, 13 Sep 2000 07:30:24 +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-33103@lists.php.net to get a copy of this message
ID: 6684 Updated by: waldschrott Reported By: waldschrott@php.net Status: Analyzed Bug Type: Documentation problem Assigned To: Comments: verified, works need docu then Previous Comments: --------------------------------------------------------------------------- [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

« previous php.dev (#33103) next »