Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php key in array exists


<?php
$search_array = array('first' => null, 'second' => 4);

// returns false
isset($search_array['first']);

// returns true
array_key_exists('first', $search_array);
?>

Source by www.php.net #
 
PREVIOUS NEXT
Tagged: #php #key #array #exists
ADD COMMENT
Topic
Name
7+9 =