The foreach loop (PHP) does not goes through the same array in the second round?

Greetings, friends!
Faced with this problem:
I have a multidimensional array, $modification in cat 2 array with keys 0 and 1, run the following code, $requests[0] is equal to the displayed and by $modification[1] gives an error "Invalid argument supplied for foreach ()" and that I somehow only modifications of vehicles, with brands, models and so on, everything is exactly the code a million time I checked, is completely identical (though works there, but not here), what is the reason? And I can't two times to sort the same array, $modification[0], the first exactly is displayed, and the second will again error

foreach ($modification[0] as $value) {
 $modification = $value['modification'];
 echo $modification . "</br>";
}
foreach ($modification[1] as $value) {
 $modification = $value['modification'];
 echo $modification . "</br>";
}
March 23rd 20 at 19:44
1 answer
March 23rd 20 at 19:46
Solution
You are in the overwrite cycle, and after the first cycle it does not iterable data, for example the number:
$modification = $value['modification'];
Damn, now I tuplyu)) thank you! - marilou_Stoltenberg commented on March 23rd 20 at 19:49

Find more questions by tags PHP