How to replace deprecated each function in PHP 7

时间:2019-05-31 11:46:39

标签: php loops

I need some help to replace the deprecated each() function. I have the following two lines from an old project:

while (list($key,) = each($image_types)) {
    ...
}

while(list(, $line) = each($lines)) {
    ...
}

0 个答案:

没有答案