Re: syntax error?
| From: | Jonas Jochum | Date: | Mon, 19 Jun 2000 20:42:00 +0000 |
| Subject: | Re: syntax error? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-2240@lists.php.net to get a copy of this message | ||
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Am 19.06.00 um 13:53 hat Miguel Cruz geschrieben:
MC>>why does PHP4 complain about a syntax error in this construct?
MC>>IMHO this should be correct, shouldn't it?
MC>>$catid = (isset($HTTP_GET_VARS[catid])) ? &$HTTP_GET_VARS["catid"] : 0;
MC>> ^^^^^ that's the error
MC>How about putting some quotes around 'catid'?
that's not the problem...the problem is, that I apparently can't
make a reference to a variable in such a conditional... I should be
able to do this: "$a = (isset($b)) ? &$c : &$d;"
the quotes don't help. Neither with nor without them does it work. :-/
- --
MfG,
Jonas Jochum
commandline net services
- -------------------------------------------------------------------------
tel: 07223-911794 | cmd:~ # Systemadministration, Netzwerkverwaltung
fax: 07223-911795 | cmd:~ # Einrichtung von *BSD/Linux-Servern
d2 : 0173-5712481 | cmd:~ # Datenbank/Internetprogrammierung
jj@commandline.de | cmd:~ # Webdesign
www.commandline.de |
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.1 (FreeBSD)
Comment: Made with pgp4pine
iEYEARECAAYFAjlOhZ0ACgkQF1ki3orczCA8XQCfSfl7vRad7NeduVX0Ru0I7JWT
N6kAn3GGW8XeymLBf6x6R2SH1m3YhEUZ
=7LKU
-----END PGP SIGNATURE-----