📜  php动态初始化二维数组 - PHP代码示例

📅  最后修改于: 2022-03-11 14:54:13.757000             🧑  作者: Mango

代码示例1
$array_ = [];

foreach ($queryresult as $row){
   $array_[] = [$row['id'], $row['title']];
}  

var_dump($array_);