php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #6684 array_reverse() should maintain indices
Submitted: 2000-09-12 12:40 UTC Modified: 2001-01-22 20:22 UTC
From: waldschrott@php.net Assigned:
Status: Closed Package: Documentation problem
PHP Version: 4.0 Latest CVS (12/09/2000) OS: *
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: waldschrott@php.net
New email:
PHP Version: OS:

 

 [2000-09-12 12:40 UTC] 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.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-09-13 03:09 UTC] andrei@php.net
Done in CVS.
 [2000-09-13 03:30 UTC] waldschrott@php.net
verified, works

need docu then
 [2001-01-22 20:22 UTC] jimw@php.net
done.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Sep 22 11:01:27 2024 UTC