Hello Readers ,
Most of the time in our application we need this function called in_array .
This function searches an array for a specific value.
Example :
<?php
$people = array("Peter", "Joe", "Glenn", "Cleveland");
if (in_array("Glenn", $people))
{
echo "Match found";
}
else
{
echo "Match not found";
}
?>
Output :
Match found
0 Comment(s)