Answers for "php initialize two dimensional array dynamically"

PHP
0

php initialize two dimensional array dynamically

$array_ = [];

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

var_dump($array_);
Posted by: Guest on June-11-2021

Code answers related to "php initialize two dimensional array dynamically"

Browse Popular Code Answers by Language