[PHP] Boolean-cast and arrays

2007-02-08 Thread Tim
First thank you all for your input on all-in-one classes. Reading the php manual on boolean types and casts, and came accros the following: quote When converting to boolean, the following values are considered FALSE: ... an array with zero elements ... /quote So here I am sitting and

RE: [PHP] Boolean-cast and arrays

2007-02-08 Thread Tim
sorry typo, make that: Shouldn't have been simply doing: $arr = array(); If (!$arr) {} -Message d'origine- De : Tim [mailto:[EMAIL PROTECTED] Envoyé : jeudi 8 février 2007 16:49 À : php-general@lists.php.net Objet : [PHP] Boolean-cast and arrays First thank you all

Re: [PHP] Boolean-cast and arrays

2007-02-08 Thread Youri LACAN-BARTLEY
Tim wrote: First thank you all for your input on all-in-one classes. Reading the php manual on boolean types and casts, and came accros the following: quote When converting to boolean, the following values are considered FALSE: ... an array with zero elements ... /quote So here I am

Re: [PHP] Boolean-cast and arrays

2007-02-08 Thread Robert Cummings
On Thu, 2007-02-08 at 18:36 +0100, Youri LACAN-BARTLEY wrote: Tim wrote: First thank you all for your input on all-in-one classes. Reading the php manual on boolean types and casts, and came accros the following: quote When converting to boolean, the following values are