Q. What is the difference between array_diff() and array_diff_assoc() functions?

  • (A) array_diff() compares the values only while array_diff_assoc() compares the keys only
  • (B) array_diff() compares the values only while array_diff_assoc() compares the keys and values
  • (C) Both functions can be used to compare the values and keys
  • (D) None of the above
πŸ’¬ Discuss
βœ… Correct Answer: (B) array_diff() compares the values only while array_diff_assoc() compares the keys and values

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
237
Total Visits
πŸ“½οΈ
5 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
87%
Success Rate