note 105090 deleted from language.operators.comparison by danbrown

From: Date: Thu, 28 Jul 2011 19:11:12 +0000
Subject: note 105090 deleted from language.operators.comparison by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-181977@lists.php.net to get a copy of this message
Note Submitter: jim ---- In PHP, an empty array is equivalent to false. Not as mentioned in another comment. >>> $arr = array(); >>> echo ($arr && true) ? 't' : 'f'; f

« previous php.notes (#181977) next »