Re: How to: If($var != '#' OR '#')
| From: | Chris Shiflett | Date: | Wed, 20 Nov 2002 20:43:37 +0000 |
| Subject: | Re: How to: If($var != '#' OR '#') | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-125324@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
A "single equals" is "=" not "!=". Otherwise, you would be correct.
Chris