When:
$person = array('name' => 'bill');
isset($person['jibberish'])
evaluates to FALSE.
But:
$person = 'bill';
isset($person['jibberish'])
evaluates to TRUE, as $person['jibberish']
returns the first character of string $person.
Is this as intended? This came as a shocker to me today, as I've always used empty($array['key'])
without ever including is_array()
in my if statements.