Re: odd error with if !(cond){}
| From: | Greg Donald | Date: | Mon, 19 Jan 2004 08:15:03 +0000 |
| Subject: | Re: odd error with if !(cond){} | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-174999@lists.php.net to get a copy of this message | ||
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Tristan Gutsche wrote:
| Hello im hoping someone might have an insight into this one im getting an
| odd error when I use a not condition in an if statement
|
| The code is as follows:
| if !(isset($_REQUEST["license"]))
| {
| $license = "off";
| }
|
| The error I am receiving is:
|
| Parse error: parse error, unexpected '!', expecting '(' in
| c:\inetpub\wwwroot\php\car.php on line 9
|
| To avoid the error im simply using a script that doesnt use the ! mark but
| the fact that using an ! in this position is occuring is worrying.. Has
| anyone else encountered this?
Do
if(!isset($_REQUEST["license"]))
- --
******************************************************
* __ __ _ ** ___/ /__ ___ / /_(_)__ ___ __ __ _______ __ _ * * / _ / -_)_-</ __/ / _ \/ -_) // // __/ _ \/ ' \ * * \_,_/\__/___/\__/_/_//_/\__/\_, (_)__/\___/_/_/_/ *
* (___/ greg@destiney.com ******************************************************* BOFH Excuse #444: overflow error in /dev/null -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFAC5IHoAq8t3CabwcRAqKoAJ0RfFIBJJnWREgY9PUViRj8wlrcmwCgpN8d AZdz70SMYVJnNd9/C/o/KFQ= =b7NS -----END PGP SIGNATURE-----