时时商务社区
标题:
php函数array_merge用法一例(合并同类数组)
[打印本页]
作者:
阿情
时间:
2018-2-14 08:26
[U]复制代码[/U] 代码如下:
$arr1 = $dblink->mem_fetch_array ( "SELECT t_pid,,invented,score FROM `t_sum_giftimg` where t_pid=3 or t_pid=6", 0 );
$arr2 = $dblink->mem_fetch_array ( "SELECT t_pid,,invented,score FROM `t_sum_giftimg` where t_pid=10 or t_pid=12", 0 );
$( $arr1, $arr2 );
if ($) {
foreach ( $$) {
$[] = $;
}
}
您可能感兴趣的文章:
php array_merge下进行数组合并的代码
php合并数组array_merge函数运算符加号与的区别
PHP合并数组+与array_merge的区别分析
php中用加号与用array_merge合并数组的区别深入分析
php数组合并array_merge()函数使用注意事项
php通过array_merge()函数合并关联和非关联数组的方法
php通过array_merge()函数合并两个数组的方法
PHP合并数组+号和array_merge的区别
PHP使用array_merge重新排列数组下标的方法
PHP数组相加操作及与array_merge的区别浅析
PHP array_merge() 函数
欢迎光临 时时商务社区 (http://bbs.4435.cn/)
Powered by Discuz! X3.2