Could someone please fill me in on why
$_locations = array(
0 => array('city' => 'Hell', 'prov' => 'Michigan', 'country' => 'USA'),
1 => array('city' => 'Kansas City', 'prov' => 'Kansas', 'country' => 'USA'),
2 => array('city' => 'Chicago', 'prov' => 'Illinois', 'country' => 'USA')
);
$key = 0;
if(in_array($key, $_locations)) echo 1; else echo 2;
echo '<br />';
if(array_key_exists($key, $_locations)) echo 1; else echo 2;
in_array fails?
I would think that 0 is "in the $_locations array" since it is slot 1.