Shouldn’t the code in the function body also be executed in order? Why is the dividing line executed first in the second brother foreach, and executed twice
replyforeach($data as $value){
//The first loop assigns the country array to $value
//The second loop assigns the array of Chinese provinces to $value
//Therefore, I traverse $value again when looping
foreach($value as $k => $v){
echo $k . '-----' . $v .'<br />';
}
//In order to see it more clearly, I added a gorgeous dividing line in the middle to facilitate your analysis.
echo '----------Separating line-----------<br />';
}
Where is the code?