Re: Question about $_GET

From: Date: Wed, 15 Jan 2003 21:27:00 +0000
Subject: Re: Question about $_GET
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-131762@lists.php.net to get a copy of this message
On Thursday 16 January 2003 04:35, [-^-!-%- wrote: > I agree with Chris, the quote should stay there to prevent confusion. > Nevertheless, I often run in the same problem. Sometimes, the only way to > fix it is by removing the quotes ($_GET[id]). > > I know PHP documents goes against this, but it dosn't always work with the > quotes. The recommended way to refer variables inside doubled-quoted strings is enclose them in braces {}. Thus: "{$_GET['id']}" > Perhaps the dev team can look more into this. Can you give examples where it doesn't work? -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* Only Irish coffee provides in a single glass all four essential food groups -- alcohol, caffeine, sugar, and fat. -- Alex Levine */

« previous php.general (#131762) next »