Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php find key in array

<?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 #find #key #array
ADD COMMENT
Topic
Name
2+5 =