Answers for "how can i check if kay appears in array php"

PHP
0

php array index exists

<?php
$array1=array("Orange" => 100, "Apple" => 200, "Banana" => 300, "Cherry" => 400);
if (array_key_exists("Banana",$array1))
{
echo "Array Key exists...";
}
else
{
echo "Array Key does not exist...";
}
?>
Posted by: Guest on April-05-2020

Code answers related to "how can i check if kay appears in array php"

Browse Popular Code Answers by Language