Step 1: A multidimensional array is an array whose elements are themselves arrays. To reach the inner values you must step down each level.
Step 2: The outer loop walks the top-level entries. For each entry, which is again an array, you run an inner loop over its elements. That means one loop nested inside another.
Step 3: A single loop only touches the top level, so it cannot read the inner values. Restricting to for only or while only is also wrong, since PHP allows any loop type here.
Step 4: The general and correct approach is nested foreach or for loops.
So the answer is option A.