note 60373 deleted from function.substr by peehaa

From: Date: Mon, 28 Nov 2016 19:42:22 +0000
Subject: note 60373 deleted from function.substr by peehaa
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-207712@lists.php.net to get a copy of this message
Note Submitter: eallik at hotmail dot com ---- Be careful when comparing the return value of substr to FALSE. FALSE may be returned even if the output is a valid string. substr("0", 0); // equals "0", comparision with FALSE evaluates to true, because "0" == 0 == FALSE

« previous php.notes (#207712) next »