Frankly even php is over-verbose.
It should be just:
foreach ($array) { function }
Or just:
foreach($array, function)
But it's fine. I have my problems with php but this isn't really one.
The foreach implies that I want to run a function for each element, it shouldn't be necessary to declare the element.
Also JS syntax gets weirder with each API and whatnot they introduce.