note 23909 added to control-structures

From: Date: Wed, 31 Jul 2002 16:23:32 +0000
Subject: note 23909 added to control-structures
Groups: php.notes 
Request: Send a blank email to php-notes+get-34051@lists.php.net to get a copy of this message
This might help anyone who is having trouble with 'if ($var1!=$var2)' not working... if $var1 equals 01270999999 and $var2 equals 1270999999, with the $var1 being read from a dbase column with datatype varchar, you'll find that a != doesn't work. Not sure why, but its fixed by changing the command to 'if ($var1 !== $var2)' I think it has something to do with the datatypes being different? -- http://www.php.net/manual/en/control-structures.php http://master.php.net/manage/user-notes.php?action=edit+23909 http://master.php.net/manage/user-notes.php?action=delete+23909 http://master.php.net/manage/user-notes.php?action=reject+23909

« previous php.notes (#34051) next »