...
forEach() is like every other function in that it returns a value.
- Its Its return value is the last statement executed in the last iteration.
- All All the $-variables used in the call to forEach() keep their values between iterations.
- All the $-variables used in the call to forEach() will be available after it has returned.
...