Which PHP function is used to check if a specified value exists in an array?

118. Which PHP function is used to check if a specified value exists in an array?

  1. in_array()
  2. check_array()
  3. exist()
  4. None of the above

Answer: A) in_array()

Explanation:

The PHP function in_array() is used to check if a specified value exists in an array.

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.