A couple of weeks ago, I wanted to show a friend how to use PHP.
The `foreach` docs showed `foreach ($array as &$value) {}` as the first example and was otherwise out of date with current PHP practices as well. Using `list($a, $b)` over `[$a, $b]`, old array syntax, and so on.
So I learned how the docs work these days and sat down to fix it:
Big thanks to @Gina Peter Banyard for the great review.
Wasn't hard, you can do it too! :)

GitHub
Modernize `foreach` docs by edorian ยท Pull Request #4451 ยท php/doc-en
The goal of this rework is to, hopefully, bring the foreach docs up to current practices and widely used syntax
https://www.php.net/manual/en/contr...

PHP: foreach - Manual
foreach