Home > Backend Development > PHP Tutorial > php比较数组

php比较数组

WBOY
Release: 2016-06-06 20:13:26
Original
1407 people have browsed it

array_diff 求解释下 网上的看不出

回复内容:

array_diff 求解释下 网上的看不出

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

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

Related labels:
php
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template