Home »
MCQs »
PHP MCQs
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?
- in_array()
- check_array()
- exist()
- 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.