No ratings yet.

 

 

 

 

 

 

 

 

how to search simple element in array

<?php
$a=array(“a”=>”black”,”b”=>”white”,”c”=>”green”);
echo array_search(“white”,$a,true);
?>

Please rate this