Connect with us

WEB SOLUTIONS DONE

how to search an array using php function

php

how to search an array using php function

 

 

 

 

 

 

 

 

how to search an array using php function

<?php
$people = array(“akram”, “javed”, “prem”, “ninda”,”chummy”);

if (in_array(“chummy”, $people))
  {
  echo “Match found,ok”;
  }
else
  {
  echo “Match not found”;
  }
?>

Continue Reading
You may also like...

More in php

Advertisement




To Top