php7.2报错The each() function is deprecated. This message will be suppressed on furthe的原因与解决方法
php应用 2022-06-20 09:58:50小码哥的IT人生shichen
问题:
php7.2报错The each() function is deprecated. This message will be suppressed on furthe
原因:
php7.2将each()废除了
解决方法:
将这个代替为foreach()
while (list($key, $val) = each($para)) { }
代替如下:
foreach ($para as $key => $val) { }