note 8377 added to Control Structures

From: Date: Fri, 08 Sep 2000 22:46:54 +0000
Subject: note 8377 added to Control Structures
Groups: php.notes 
Request: Send a blank email to php-notes+get-4573@lists.php.net to get a copy of this message
I have noticed that: if (($x != 'yes') || ($x != 'yeah')) { do some stuff } does not work as expected. I had to break them apart into separate if statements. I realize switch will work for this, but it ends up being much more code than needed. http://www.php.net/manual/control-structures.php

« previous php.notes (#4573) next »