PHP find value in array

# Note : This function is for you to find any value needed in an array.

Example : If you want to find “mysql” in an array you may use the function “in_array” below.

<?
$xyiry = array(”mysql”, “oracle”, “informix”, “db2″);
if (in_array(”mysql”, $xyiry)) {
echo “This Database Is Using mySQL”;
}
?>


About this entry