Re: [PHP] Re: set multiple variables

2004-10-03 Thread Daniel Schierbeck
Matthew Fonda wrote: On Sun, 2004-10-03 at 04:39, Graham Cossey wrote: isn't the || same as && ? Or I missed something? No, || is OR, and && is AND Check out http://www.php.net/manual/en/language.operators.logical.php Wll - sort of. The precedence level can be tricky, sometimes "||" doesn

Re: [PHP] Re: set multiple variables

2004-10-03 Thread argesson
Matthew Fonda wrote: On Sun, 2004-10-03 at 04:39, Graham Cossey wrote: isn't the || same as && ? Or I missed something? No, || is OR, and && is AND Check out http://www.php.net/manual/en/language.operators.logical.php OK, sorry, my mistake. And thanks. newbie -- PHP General Mailing List (http://ww

RE: [PHP] Re: set multiple variables

2004-10-03 Thread Matthew Fonda
On Sun, 2004-10-03 at 04:39, Graham Cossey wrote: > isn't the || same as && ? Or I missed something? No, || is OR, and && is AND Check out http://www.php.net/manual/en/language.operators.logical.php -- Regards, Matthew Fonda -- PHP General Mailing List (http://www.php.net/) To unsubscribe, vis

Re: [PHP] Re: set multiple variables

2004-10-03 Thread dirk
$REMOTE_ADDR == "212.3.54.65" || $REMOTE_ADDR == "212.3.54.66" is correct On Sun, 3 Oct 2004 12:39:11 +0100, Graham Cossey <[EMAIL PROTECTED]> wrote: > > ||= OR > && = AND > > > > -Original Message- > From: argesson [mailto:[EMAIL PROTECTED] > Sent: 03 October 2004 11:30 > To: [EMAIL

RE: [PHP] Re: set multiple variables

2004-10-03 Thread Graham Cossey
||= OR && = AND -Original Message- From: argesson [mailto:[EMAIL PROTECTED] Sent: 03 October 2004 11:30 To: [EMAIL PROTECTED] Subject: [PHP] Re: set multiple variables Daniel Schierbeck wrote: > Argesson wrote: > >> try this: >> if ($REMOTE_ADDR == "212.3.54.65" && $REMOTE_ADDR == "212