如果是按需求(不是差集)来实现,可以将in_array换成array_search,如果查找成功,该函数会返回命中的key,如果在arr2中能找到,在删除$arr1[$k]时,同时删除$arr2[$idx]就行了,如果要保留$arr2,就copy一个数组来操作foreach($arr1 as $k=>$v){
Could not find 'php-cs-fixer'. The program may not be installed.See [链接] for program installation instructions.Your program is properly installed if running 'which php-cs-fixer' in your Terminal returns an absolute path to the executable. If this does not work then you have not installed the pr...