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
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
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
$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
||= 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
5 matches
Mail list logo