PHP array_uintersect() FunctionLast Updated : 17 Mar 2025 The array_uintersect() is an inbuilt function in PHP. It is used to compute the intersection of two or more arrays depending on the values. The first array values are compared with all the other arrays with the help of an user-defined function, and the matches are returned. This function was introduced in PHP 5.0. SyntaxParameters
ReturnThe array_uintersect( ) function returns an array containing the entries from array1 that are present in all of the other arrays. Example 1Output:
Array
(
[d] =>jmeter
)
Example 2Output:
Array
(
[a] => java
[b] => c
)
Example 3Output:
Array
(
[a] => java
[b] =>php
[0] => python
)
Example 4Output:
Array
(
[1] => 53
[2] => 43
)
Next TopicPhp-array-uintersect-uassoc-function |
We request you to subscribe our newsletter for upcoming updates.

We deliver comprehensive tutorials, interview question-answers, MCQs, study materials on leading programming languages and web technologies like Data Science, MEAN/MERN full stack development, Python, Java, C++, C, HTML, React, Angular, PHP and much more to support your learning and career growth.
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India