php7.2 버전 부터 each()  함수는 더 이상 사용되지 않습니다. 

Deprecated: The each() function is deprecated. This message will be suppressed on further calls in

 

해결 방법. 간단하다.

while (list($key, $value) = each($array)) { 
#code
}

위에 코드를

foreach ($array as $key => $value) {
#code
}

이렇게 변경하면 된다.

foreach문을 사용하시면됩니다.

 

 





Posted by 비만곰
,