我有两个数组,我想从第一个数组中仅通过键搜索我在第二个数组中拥有的数组,作为第三个数组,我想打印结果:
$colldata=array("bench-press-rod"=>'',"adidas-classic-backpack"=>'93549559913',"adidas-classic-backpack-legend-ink-multicolour"=>'',"puma-suede-classic-regal"=>'93549920361,93549723753'); $colldata2=array(0 => 'bench-press-rod',1 => 'adidas-classic-backpack');
预期结果:
array('bench-press-rod'=>'',"adidas-classic-backpack"=>'93549559913');
宝慕林4294392
一只斗牛犬
撒科打诨