It checks if a value exists in an array
Example
<?php
$lan = array(“PHP”, “ASP”, “JSP”);
if (in_array(“PHP”, $lan)) {
echo “PHP exists”;
}
?>
Output
PHP exists