Doc #76673 [Opn->Csd]: each is deprecated,shoul be removed from the page
| From: | peehaa@php.net | Date: | Fri, 27 Jul 2018 10:53:43 +0000 |
| Subject: | Doc #76673 [Opn->Csd]: each is deprecated,shoul be removed from the page | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-15932@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=76673&edit=1
ID: 76673
Updated by: peehaa@php.net
Reported by: bocance_alexandru_cristofor at yahoo dot com
Summary: each is deprecated,shoul be removed from the page
-Status: Open
+Status: Closed
Type: Documentation Problem
Package: Documentation problem
PHP Version: 7.2.8
-Assigned To:
+Assigned To: peehaa
Block user comment: N
Private report: N
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2018-07-27 08:56:41] bocance_alexandru_cristofor at yahoo dot com
Description:
------------
---
From manual page: http://php.net/manual/en/control-structures.break.php
Test script:
---------------
$arr = array('one', 'two', 'three', 'four',
'stop', 'five');
while (list(, $val) = each($arr)) {
if ($val == 'stop') {
break; /* You could also write 'break 1;' here. */
}
echo "$val<br />\n";
}
Actual result:
--------------
<br />
<b>Deprecated</b>: The each() function is deprecated. This message will be suppressed
on further calls in <b>[...][...]</b> on line <b>3</b><br />
one<br />
two<br />
three<br />
four<br />
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=76673&edit=1