note 99587 deleted from function.trim by danbrown

From: Date: Wed, 25 Aug 2010 14:01:22 +0000
Subject: note 99587 deleted from function.trim by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-172047@lists.php.net to get a copy of this message
Note Submitter: Knut ---- Please consider the following: $a = '0'; if (trim($a)) { echo 'Never ever ...'; } else { echo 'YES, "(bool)trim(\'0\')" is FALSE'; } This cast costs me some time...

« previous php.notes (#172047) next »