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
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
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
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
4 matches
Mail list logo