>   $foo = "This page is $_SERVER[PHP_SELF]";
> Or, better:
>   $foo = "This page is {$_SERVER['PHP_SELF']}";
> You do have to concat to do this in single-quoted (noninterpolated)
> strings, though.

Can you expand on why the first option isn't generally acceptable?  I can
understand there being an issue with spaces in an index, but is there some
other reason that the latter is prefered?

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

Reply via email to