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) {
"If you would thoroughly know anything, teach it to other."
- Tryon Edwards -