Re: syntax error?

From: Date: Tue, 20 Jun 2000 16:51:29 +0000
Subject: Re: syntax error?
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-21856@lists.php.net to get a copy of this message
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Am 20.06.00 um 19:35 hat Andi Gutmans geschrieben: AG>>>$catid = (isset($HTTP_GET_VARS[catid])) ? &$HTTP_GET_VARS["catid"] : 0; AG>& isn't an operator in PHP. AG>It can only be used under very specific circuimstances such as assigning AG>references (= &) function parameter list (&$param). hrm. but that's what the construct should do...And I can do the same in C, eg. int *foo,bar,baz; bar = 5; baz=6; foo = (bar > baz) ? &bar : &baz; printf("%d\n",*foo); Well, anyway, PHP is not C, I guess. However, having the & work in such a conditional as the above would be "a good thing" (tm). ;) Thanks for answering! - -- Reg., 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 iEYEARECAAYFAjlPoRYACgkQF1ki3orczCAn/wCeOWviryKHgzcQp9eOv8vqHG7F Dv4An1EeMtxR9N0+KPlFVaJFh5OQcfmc =hXax -----END PGP SIGNATURE-----

« previous php.dev (#21856) next »