같은 타입의 배열 병합, array_merge() 함수의 간단한 예
$arr1 = $dblink->mem_fetch_array ( "SELECT t_pid,imgname,invented,score FROM `t_sum_giftimg` where t_pid=3 or t_pid=6", 0 ); $arr2 = $dblink->mem_fetch_array ( "SELECT t_pid,imgname,invented,score FROM `t_sum_giftimg` where t_pid=10 or t_pid=12", 0 ); $imgInfo = array_merge ( $arr1, $arr2 ); if ($imgInfo) { foreach ( $imgInfo as $imgInfo ) { $imgs [] = $imgInfo; } }