On Monday 29 April 2002 23:05, Kirk Babb wrote:
> Hi All,
> Thanks alot for all your help with the _SERVER['PHP_SELF'] earlier, I have
> another question related to that:
> What is the correct syntax for the above if I want to use it in a print
> statement like so (I included the whole piece of code so you guys could at
> least see what I'm trying to do):
>      $chars = preg_split('//', $string, -1, PREG_SPLIT_NO_EMPTY);
>      for ($cnt=0; $cnt < 26; $cnt++) {
> //commented out the next line since I couldn't get it to work
> //print "<LI><A HREF='$_SERVER['PHP_SELF']?letter=$chars[$cnt]'>" .

Normally you would use:


But inside a double-quoted string like above you would use:


Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *

Work expands to fill the time available.
                -- Cyril Northcote Parkinson, "The Economist", 1955

PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to