note 49759 deleted from ref.strings by derick

From: Date: Wed, 09 Feb 2005 18:09:10 +0000
Subject: note 49759 deleted from ref.strings by derick
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-84734@lists.php.net to get a copy of this message
Note Submitter: roelfy at lycos dot nl ---- if the variable $memberid contains a zero, and you use: if($memberid != '') .... the outcome is false because somehow '0' becomes '' (empty) somehow i found a solution for this: if("$memberid"!='') .... the above expression will distinguish between 0 (zero) and '' (empty string) it cost me 1 nightly hour so i hope it helps someone else

« previous php.notes (#84734) next »