The Array_merge () function merges two or more arrays into an array.
If the key name is duplicated, the key value of the key is the value of the last key name (preceded by the overlay). If the array is a numeric index, the key name is sequentially indexed.
For example:
$news =m (' News ');
$sql = "SELECT count (a.news_id) as Count_news,a.menu_id,b.pid from News a left join menu B on a.menu_id=b.menu_id where a.is _pass=0 GROUP by a.menu_id; ";
$count = $news->query ($sql);
$text _check=m (' Text_check ');
$sql 2= "SELECT count (a.check_id) as Count_news,a.menu_id,b.pid from Text_check a left join menu B on a.menu_id=b.menu_id wh Ere a.is_pass=0 GROUP by a.menu_id; ";
$count 2= $text _check->query ($sql 2);
Dump ($count); exit
Dump ($count 2); exit;
Dump (Array_merge ($count, $count 2)); exit;
See more highlights of this column: http://www.bianceng.cnhttp://www.bianceng.cn/webkf/PHP/