each() loop function is deprecated since PHP 7.2 so that you can update syntax below:
reset($array);
while (list($key, ) = each($array)) {
Update to
foreach(array_keys($array) as $key) {
reset($array);
while (list(, $value) = each($array)) {
Update to
foreach($array as $value) {
reset($array);
while (list($key, $value) = each($array)) {
Update to
foreach($array as $key => $value) {
"어떤 것을 완전히 알려거든 그것을 다른 이에게 가르쳐라."
- Tryon Edwards -