note 8207 added to Control Structures
| From: | sun at ultrachat dot net | Date: | Thu, 31 Aug 2000 08:39:47 +0000 |
| Subject: | note 8207 added to Control Structures | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-3772@lists.php.net to get a copy of this message | ||
I'm pretty much a newbie to PHP3/4 and I'm stunned as it is so easy. Anyway, I can't
figure out any alternative of doing ...
if ($frmGo) {
if ($fromGo = 1) {
bleh
}
elseif ($frmGo = 2) {
blehhh
}
}
else {
blaha
}
to first of all prove wether the field GO is actually filled in. Also can't I find out how to
do something like
if ($frmGo = moo) || ($frmGo = doo) { }
whereas the || would mean OR - How does this work in PHP ?
If you know the answer. ... just drop me a line by email (as above) or stop by on irc.ultrachat.net
#CheatsRus - thanks a whole bunch =)
http://www.php.net/manual/control-structures.php