From fbde32f84bff5388c325d513c44976542015c049 Mon Sep 17 00:00:00 2001 From: Christoph Michael Becker Date: Thu, 13 Aug 2020 12:20:56 +0000 Subject: [PATCH] Fix #79054: Wrong indistinguishable point about current() function git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350305 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/array/functions/current.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reference/array/functions/current.xml b/reference/array/functions/current.xml index 283fd96671..3052219380 100644 --- a/reference/array/functions/current.xml +++ b/reference/array/functions/current.xml @@ -99,8 +99,8 @@ var_dump(current($arr)); // array(0) { } &reftitle.notes; - The end of an array and the result of calling - current on an empty array + The results of calling current on an empty array + and on an array, whose internal pointer points beyond the end of the elements, are indistinguishable from a boolean &false; element. To properly traverse an array which may contain &false; elements, see the foreach function.