mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
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:
parent
654f983667
commit
02424f4d2a
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue