我想在循环外使用我的新数组。我该怎么做?
$new = array();
foreach ($array as $data) {
$url = $data["result"]["url"];
$name = $data["result"]["name"];
$new = array(
$name => $url
);
}
print_r($new);
守候你守候我
相关分类