php foreach loop November 19, 2021 by Codingtube team The foreach loop has a slightly different structure when using non-numerically indexed arrays Example of foreach loop Multi-dimensional array foreach Example