Problem Statement
What does the function in_array() do?
Explanation
in_array() searches for a value in an array and returns true if found, false otherwise.
Code Solution
SolutionRead Only
in_array('apple', $fruits);Get the Preplance app for a seamless learning experience. Practice offline, get daily streaks, and stay ahead with real-time interview updates.
Get it on
Google Play
4.9/5 Rating on Store
PHP · Interview Question
Detailed answer, explanation and code for this interview question. Ideal for PHP interview preparation, coding rounds and viva questions.
What does the function in_array() do?
in_array('apple', $fruits);
Master PHP with our complete collection of questions, tutorials and guides.