foreach loops on arrays
Just a quick note here on foreach loops. Not sure if you knew this but foreach loops can be used to iterate over multidimensional arrays. Imagine you have: you can iterate over the whole 3D array here in a single foreach: The resulting output is: 012345012345. This will only work for multidimensional arrays. For jagged […]
. Read more