当前位置 : 主页 > 网络编程 > PHP >

php array_diff使用实例i

来源:互联网 收集:自由互联 发布时间:2021-06-30
?php$array1 = array('OH','CA','NY','HI','CT');$array2 = array('OH','CA','HI','NY','IA');$array3 = array('TX','MD','NE','OH','HI');$diff = array_diff($array1, $array2, $array3);print_r($intersection);?
<?php

$array1 = array('OH','CA','NY','HI','CT');
$array2 = array('OH','CA','HI','NY','IA');
$array3 = array('TX','MD','NE','OH','HI');
$diff = array_diff($array1, $array2, $array3);
print_r($intersection);

?>
网友评论