php比较数组

WBOY
WBOYOriginal
2016-06-06 20:13:261399browse

array_diff 求解释下 网上的看不出

回复内容:

array_diff 求解释下 网上的看不出

<code>array_diff($array1,$array2);</code>

返回两个数组的差集的数组,即$array1里面有,但是$array2里面没有的项。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn