Update example to avoid the deprecated each()

Patch provided by anonymous user.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345141 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Christoph Michael Becker 2018-06-15 12:09:29 +00:00
parent 654f983667
commit 02424f4d2a

View file

@ -32,7 +32,7 @@
<programlisting role="php">
<![CDATA[
<?php
while (list($key, $value) = each($arr)) {
foreach ($arr as $key => $value) {
if (!($key % 2)) { // skip even members
continue;
}