php7.2以上 廢除了 each()方法,項目中用到的地方會出現以下報錯
The each() function is deprecated. This message will be suppressed on further calls
解決辦法。很簡單
while (list($key, $val) = each($array)) { #code }
改為
foreach ($array as $key => $val) { #code }
php7.2以上 廢除了 each()方法,項目中用到的地方會出現以下報錯
The each() function is deprecated. This message will be suppressed on further calls
解決辦法。很簡單
while (list($key, $val) = each($array)) { #code }
改為
foreach ($array as $key => $val) { #code }
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。