Re: PHP 8.3 Processes Diferently Than 7.4
Calvin Buckley <[email protected]> Fri, 4 Oct 2024 17:50:57 -0300
| Newsgroups | gmane.comp.php.general |
|---|---|
| Message-ID | <[email protected]> |
On Oct 4, 2024, at 5:49 PM, Steve Matzura <[email protected]> wrote: > > Looks simple enough, unless I'm misunderstanding the change. so, should: > > while (list ($key, $value) = each ($sorted_shows)) > > be: > > foreach (list as ($key, $value) = each ($sorted_shows)) > > like that? > foreach ($array as $key => value) or for non-associative, foreach ($array as $element)