我的数组:
Array
(
[0] => Array
(
[mobileNumber] => 5555555
[message] => test
)
[1] => Array
(
[mobileNumber] => 555555
[message] => test
)
[2] => Array
(
[mobileNumber] => 555555
[message] => test
)
[3] => Array
(
[mobileNumber] => 5555555
[message] => test
)
[4] => Array
(
[mobileNumber] => 77255552233
[message] => test
)
)
环形
foreach ($NumbersArray as $number => $message) {
echo "Number: $number Message: $message<br/>";
echo "<br/>";
}
这是我的结果:
Number: 0 Message: Array
Number: 1 Message: Array
Number: 2 Message: Array
Number: 3 Message: Array
Number: 4 Message: Array
我想要的是这样的:
Number: 55555 Message: test