<?php
$point = [];
$point[0] = ['101.159349','12.754504'];
$point[1] = ['101.158252','12.754650'];
echo "<pre>";
$r=[];
for ($a=0; $a <count($point) ;$a++) {
for ($i=0; $i <5 ; $i++) {
$r[$a][]= ['ppp','lll'];
}
}
我写的有问题 不好意思 输出$r这个循环
这样写是最好的效果么
////////////////////////////////////////////////////////////////
我想输出的样子
Array(
[0] => Array
(
[0] => Array
(
[0] => ppp
[1] => lll
)
[1] => Array
(
[0] => ppp
[1] => lll
)
)
[1] => Array
(
[0] => Array
(
[0] => ccc
[1] => lll
)
[1] => Array
(
[0] => ddd
[1] => lll
)
)
)
添加回答
举报
0/150
提交
取消