我如何包含这个arrayA
$info =array($lat3,$lon3);
到arrayB
$the_array[]= array{(1,2),(1,2),(1,2),...};
答案 0 :(得分:2)
array array_merge ( array $array1 [, array $... ] )
答案 1 :(得分:0)
使用array_merge
$array1 = array($lat3,$lon3);
$array2 = array("a", "b", "color" => "green", "shape" => "trapezoid", 4);
$result = array_merge($array1, $array2);
print_r($result);