> in_array() in php ~ Online tutorial

in_array() in php

in_array() function searched an array for a specific value.This function returns TRUE if the value is found in the array or FALSE otherwise.
syntax
in_array(search,array,type)


<?php

$sum=array("india","pak");
if(in_array("india",$sum)
{
echo"Match Found"
}
echo"Not found";
}

?>

Output
Match Found

Please Give Us Your 1 Minute In Sharing This Post!
Please Give Us Your 1 Minute In Sharing This Post!
SOCIALIZE IT →
FOLLOW US →
SHARE IT →
Powered By: BloggerYard.Com

0 comments: