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
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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