Re: How to: If($var != '#' OR '#')
| From: | 1LT John W. Holmes | Date: | Wed, 20 Nov 2002 20:49:34 +0000 |
| Subject: | Re: How to: If($var != '#' OR '#') | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-125327@lists.php.net to get a copy of this message | ||
> --- electroteque <daniel@electroteque.org> wrote:
> > if ($_GET['sc'] !== '2' || $_GET['sc'] !== 8) {
> >
> > for me single equals seem to assign the variable with the value
> > double equals seem to check the variable for the value
From the, imagine this, Manual:
$a != $b Not equal TRUE if $a is not equal to $b.
$a !== $b Not identical TRUE if $a is not equal to $b, or they are not
of the same type. (PHP 4 only)
---John Holmes...