note 50772 deleted from function.stristr by jsjohnst

From: Date: Thu, 10 Mar 2005 04:02:44 +0000
Subject: note 50772 deleted from function.stristr by jsjohnst
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-86191@lists.php.net to get a copy of this message
Note Submitter: ian_c_web at thejolly dot demon dot co dot uk ---- You should always do a check similar to if (stristr($total, "0")!="") { as stristr returns a string, now as the zero was at the end the string returnd was:- "0" which will evaulate to a zero integer value, which is false, so just relying on the return of stristr in this case will correctly cause the if not to be entered.

« previous php.notes (#86191) next »