The structure is as follows:
arr [ inner1[], inner2[], ... ] I loop through the arr array:
foreach ($arr as $inner) { $inner[...] = ...; } In general, I produce actions with a nested array, but I understand that the $inner value in foreach not a pointer to the nested array, so no changes are made to the array itself.
The only option I can see is passing through the array with a normal loop and accessing each element by index. Is this really the only option?