[prev in list] [next in list] [prev in thread] [next in thread]
List: php-doc-cvs
Subject: [DOC-CVS] =?utf-8?q?svn:_/phpdoc/en/trunk/reference/array/functions/_prev.xml?=
From: Christoph_Michael_Becker <cmb () php ! net>
Date: 2017-08-25 13:45:04
Message-ID: svn-cmb-1503668704-342936-728754559 () svn ! php ! net
[Download RAW message or body]
cmb Fri, 25 Aug 2017 13:45:04 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=342936
Log:
Move falseproblem under the Return section for consistency.
Update Notes on how to check false values vs. out of bounds elements.
--
Provided by anonymous 84645 (petcu.stephan@gmail.com)
Changed paths:
U phpdoc/en/trunk/reference/array/functions/prev.xml
Modified: phpdoc/en/trunk/reference/array/functions/prev.xml
===================================================================
--- phpdoc/en/trunk/reference/array/functions/prev.xml 2017-08-25 13:44:44 UTC (rev 342935)
+++ phpdoc/en/trunk/reference/array/functions/prev.xml 2017-08-25 13:45:04 UTC (rev 342936)
@@ -41,6 +41,7 @@
the internal array pointer, or &false; if there are no more
elements.
</para>
+ &return.falseproblem;
</refsect1>
<refsect1 role="examples">
&reftitle.examples;
@@ -64,13 +65,12 @@
</refsect1>
<refsect1 role="notes">
&reftitle.notes;
- &return.falseproblem;
<note>
<simpara>
- You won't be able to distinguish the beginning of an array from a
- <type>boolean</type> &false; element. To properly traverse an array
- which may contain &false; elements, see the <function>each</function>
- function.
+ The beginning of an array is indistinguishable from a
+ <type>boolean</type> &false; element. To make the distinction, check that
+ the <function>key</function> of the <function>prev</function> element is
+ strictly different from <type>null</type>.
</simpara>
</note>
</refsect1>
--
PHP Documentation Commits Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic