时间:2021-07-01 10:21:17 帮助过:5人阅读
/* * PHP按值合并数组 * */ function my_array_merge(&$array1, &$array2) { $result = Array(); foreach($array1 as $key => &$value) { $result[$key] = array_merge($value, $array2[$key]); } return $result; }
http://www.bkjia.com/PHPjc/978699.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/978699.htmlTechArticlephp 按列值合并数据,php合并数据 /* * PHP按值合并数组 * */ function my_array_merge( $array1 , $array2 ) { $result = Array (); foreach ( $array1 as $key = $value )...