svn: /phpdoc/ru/trunk/reference/spl/arrayiterator/ offsetunset.xml

From: Date: Mon, 06 Jul 2020 08:50:20 +0000
Subject: svn: /phpdoc/ru/trunk/reference/spl/arrayiterator/ offsetunset.xml
Groups: php.doc.ru 
Request: Send a blank email to doc-ru+get-8471@lists.php.net to get a copy of this message
sergey Mon, 06 Jul 2020 08:50:20 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=350103 Log: docs(ru): Updated to English revision Changed paths: U phpdoc/ru/trunk/reference/spl/arrayiterator/offsetunset.xml Modified: phpdoc/ru/trunk/reference/spl/arrayiterator/offsetunset.xml =================================================================== --- phpdoc/ru/trunk/reference/spl/arrayiterator/offsetunset.xml 2020-07-05 18:08:31 UTC (rev 350102) +++ phpdoc/ru/trunk/reference/spl/arrayiterator/offsetunset.xml 2020-07-06 08:50:20 UTC (rev 350103) @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- EN-Revision: 345631 Maintainer: mch Status: ready --> +<!-- EN-Revision: 350025 Maintainer: mch Status: ready --> <!-- Reviewed: yes Maintainer: sergey --> <!-- $Revision$ --> <refentry xml:id="arrayiterator.offsetunset" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> @@ -17,9 +17,15 @@ <para> Сбрасывает значение по смещению. </para> + <para> + Если итерация выполняется и <methodname>ArrayIterator::offsetUnset</methodname> используется для + сброса текущего индекса итерации, позиция итерации будет смещена к следующему индексу. + Поскольку позиция итерации также смещается в конце &foreach; в теле цикла, + использование <methodname>ArrayIterator::offsetUnset</methodname> внутри цикла + <link linkend="control-structures.foreach"><literal>foreach</literal></link> может + привести к пропуску индексов. + </para> - &warn.undocumented.func; - </refsect1> <refsect1 role="parameters">

« previous php.doc.ru (#8471) next »