|
Posted by jamen on 08/01/05 06:20
Michael G wrote:
> $PHONETIC is an array of strings. How can !$PHONETIC['d'], in the case
> below, evalutae to true. It is a string not a boolean. It would make more
> sense if it evalutated to null.
> $PHONETIC = array('a' => 'alpha', 'b' => 'bravo', 'c' => 'charlie');
Actually, I think it does. Try:
echo @gettype($PHONETIC['d']);
And when you use NULL in a boolean expression, it evaluates to false
Navigation:
[Reply to this message]
|