Show Output
Example of Testing Whether a Key Exists in PHP Array
"Paris", "India"=>"Mumbai", "UK"=>"London", "USA"=>"New York"); // Testing the key exists in the array or not if(array_key_exists("France", $cities)){ echo "The key 'France' is exists in the cities array"; } ?>