例如有这样一个数组:
array(4) {
["title"]=>
array(9) {
[0]=>
string(3) "标题1"
[1]=>
string(3) "标题2"
[2]=>
string(3) "标题3"
[3]=>
string(3) "标题4"
}
["id"]=>
array(9) {
[0]=>
string(1) "//m.sbmmt.com/m/article/n1"
[1]=>
string(1) "//m.sbmmt.com/m/article/n2"
[2]=>
string(1) "//m.sbmmt.com/m/article/n3"
[3]=>
string(1) "//m.sbmmt.com/m/article/n4"
}
["pic"]=>
array(9) {
[0]=>
string(4) "//m.sbmmt.com/m/article/1.jpg"
[1]=>
string(4) "//m.sbmmt.com/m/article/2.jpg"
[2]=>
string(4) "//m.sbmmt.com/m/article/3.jpg"
[3]=>
string(4) "//m.sbmmt.com/m/article/4.jpg"
}
["price"]=>
array(9) {
[0]=>
string(5) "85.00"
[1]=>
string(6) "155.00"
[2]=>
string(5) "49.00"
[3]=>
string(5) "75.00"
}
....更多数组
}
我想把里面的数据这样遍历循环出来:
![](http://m.sbmmt.com/m/article/1.jpg)
标题1
85.00
![](http://m.sbmmt.com/m/article/2.jpg)
标题2
155.00
![](http://m.sbmmt.com/m/article/3.jpg)
标题3
49.00
![](http://m.sbmmt.com/m/article/4.jpg)
标题4
75.00
里面应该怎么写的?
foreach($arr as $key => $value)
{
foreach(里面不会写了)
{
echo '
echo '';
echo '
echo $title;
echo ''.$price.'';
echo '';
echo '
}
}