Source Code:
(back to article)
<?php $fruits = ['apple' => 'red', 'banana' => 'yellow', 'orange' => 'orange']; if (isset($fruits['apple'])) { echo "The value for key 'apple' is set in the array."; }
Result:
Report an issue