RE: [PHP] "IF" statements
| From: | Peter Houchin - SunRentals Australia | Date: | Wed, 23 May 2001 03:01:44 +0000 |
| Subject: | RE: [PHP] "IF" statements | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-53969@lists.php.net to get a copy of this message | ||
What's wrong with doing it like
if ($date == 24) {
if ($hour == 3) {
do something
}
}
??
-----Original Message-----
From: chris herring [mailto:chrisherring@subdimension.com]
Sent: Wednesday, May 23, 2001 12:58 PM
To: php-general@lists.php.net
Subject: [PHP] "IF" statements
Ok, use your imaginations and visualize what I'm trying to do with this, because I'm not
quite sure how to explain it. Anyway, I'm trying to have a script that says when THIS_VAR and
THAT_VAR are a certain number it show something. I'm not quite sure how to do that without
making yet another var that would screw up things even more. Anyway, this might help some people
with what I'm trying to do:
if ($date == 24 && $hour == 3) { }
But that doesn't work... Any help is appreciated
-chris
"Fat people eat."