php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #46482 function end() documentation does not specify return value for empty array
Submitted: 2008-11-04 15:39 UTC Modified: 2008-11-04 16:25 UTC
From: mikko dot rantalainen at peda dot net Assigned:
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS: linux
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: mikko dot rantalainen at peda dot net
New email:
PHP Version: OS:

 

 [2008-11-04 15:39 UTC] mikko dot rantalainen at peda dot net
Description:
------------
http://php.net/end


Expected result:
----------------
"Return Values
Returns the value of the last element or FALSE if array is empty." (similar to reset()).


Actual result:
--------------
"Return Values
Returns the value of the last element."


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-11-04 16:25 UTC] vrana@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.

"Returns the value of the last element or FALSE for empty array."
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Tue Oct 06 19:00:01 2026 UTC