array_intersect()
to find the common values between two or more arraysarray_intersect()
to find the common values between two or more arraysarray_intersect()
allows you to find the values that are present in multiple arrays. It returns an array containing the common values, effectively performing an intersection operation. This function can be handy when you need to extract elements that exist in all the input arrays.