Skip to content
Related Articles

Related Articles

Improve Article
Save Article
Like Article

Web technologies Questions | PHP Quiz | Set-2 | Question 1

  • Last Updated : 20 Sep, 2021

Which below method is used to compute the difference between two arrays in PHP?
(A) array_diff
(B) diff_array
(C) arrays_diff
(D) diff_arrays


Answer: (A)

Explanation: The array_diff is used to compare the difference between given arrays and return the value as a difference. It is used to compare the difference between two or more than two arrays. So for computing, the difference between the two arrays in PHP the method is used is array_diff.

Quiz of this Question
Please comment below if you find anything wrong in the above post

My Personal Notes arrow_drop_up
Recommended Articles
Page :