<?php$arrs = array (array ('286','127.0.0.1' ),array ('287','127.0.0.1' ),array ('288','127.0.0.1' ),array ('289','127.0.0.1' ) );$row = array ('289','127.0.0.1' );foreach ( $arrs as $arr ) {if(!judgeEqual($arr,$row)){echo '123';}//print_r ( $arr );}//使用数组的差集来判断function judgeEqual($key1,$key2){if(array_diff($key1,$key2) || array_diff($key2,$key1)){return true;}else{return false;}}