Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

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";
}
?>
 
PREVIOUS NEXT
Tagged: #php #array #key
ADD COMMENT
Topic
Name
2+8 =