Source Code:
(back to article)
<?php $nestedArray = [[1, 2, 3], [4, 5, 6], [7, 8, 9]]; foreach ($nestedArray as $subArray) { foreach ($subArray as $element) { echo $element . "\n"; } }
Result:
Report an issue