标签:class blog ble 交集 param == 数组 自定义 color
1.函数的作用:根据用户自定义的函数,比较键值,返回数组的交集
2.函数的参数:
@params array $array1
@params array $array2
@params array $array3
...
callable $key_compare_func
3.例子:
1 <?php 2 $arr1 = [‘Lvpeilin‘ => ‘Sb‘,‘zby‘ => ‘Un‘]; 3 $arr2 = [‘Lvpeilin‘ => ‘Unknow‘]; 4 print_r(array_intersect_ukey($arr1,$arr2,function($a,$b){return $a === $b ? 0 : -1;}));
标签:class blog ble 交集 param == 数组 自定义 color
原文地址:http://www.cnblogs.com/jingjingdidunhe/p/6785619.html