Answers for "oho in_array with key"

PHP
4

php in array key

<?php
$search_array = array('first' => 1, 'second' => 4);
if (array_key_exists('first', $search_array)) {
    echo "The 'first' element is in the array";
}
?>
Posted by: Guest on March-19-2022

Browse Popular Code Answers by Language