Using PHP in_array() function

Use PHP in_array() function to check whether a specific value exists in an array or not. Here is an sample PHP program, initialized an array with few element. Then check if an element is available in the defined array. Example

Output: