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: https://github.com/php/doc-en/pull/4451/
Big thanks to Gina Peter Banyard (npub1zts…0mtu) for the great review.
Wasn't hard, you can do it too! :)
https://www.php.net/manual/en/control-structures.foreach.php