Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php array exists key

<?php
$search_array = array('first' => 1, 'second' => 4);
if (array_key_exists('first', $search_array)) {
    echo "The 'first' element is in the array";
}
?>
Source by www.php.net #
 
PREVIOUS NEXT
Tagged: #php #array #exists #key
ADD COMMENT
Topic
Name
7+9 =