Programming Languages PHP Objective
Jan 02, 2013

Which of the following function computes the difference of arrays?

Choose the correct answer:
A) diff_array
B) array_diff
C) array_difference
D) difference_array
Detailed Explanation

Explanation: The array_diff() function computes the difference of arrays. It returns an array containing all the entries from array1 that are not present in any of the other arrays. Syntax: array_diff($array1, $array2, ...);

Discussion (0)

No comments yet. Be the first to share your thoughts!

Share Your Thoughts
Feedback