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

From: Date: Tue, 12 Sep 2000 16:40:32 +0000
Subject: PHP 4.0 Bug #6684: array_reverse() should maintain indices
Groups: php.dev 
Request: Send a blank email to php-dev+get-32987@lists.php.net to get a copy of this message
From: waldschrott@php.net Operating system: * PHP version: 4.0 Latest CVS (12/09/2000) PHP Bug Type: Feature/Change Request Bug description: array_reverse() should maintain indices 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.

« previous php.dev (#32987) next »