PHP in_array() functionThe in_array( ) function is an inbuilt function of PHP. It is used to search an array for a specific value. If the third parameter strict is set to true, the in_array( ) function will also check the types of the $values. SyntaxParameter
ReturnsThe function returns true if the value is found in the array or false otherwise. Example 1Output: found Example 2Output: Got jobGot innovation Example 3Output: great player Example 4Output: found not found
Next TopicPHP Array Functions
|