Posted by jamen on 08/01/05 06:49
Michael G wrote:
> The following link states a number of cases for boolean conversion. It does
> state that an array with zero elements will be converted to FALSE but not
> the case above where an array element is not set. Maybe I am reading too
> much into it...
>
> http://us2.php.net/manual/en/language.types.boolean.php#language.types.boolean.casting
Well, it clearly states:
When converting to boolean, the following values are considered FALSE:
* the special type NULL (including unset variables)
Navigation:
[Reply to this message]
|