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"; } ?> |
Match Found
0 comments:
Post a Comment