RE: [PHP] function definition causing problems?
| From: | Johnson, Kirk | Date: | Mon, 24 Jun 2002 17:28:40 +0000 |
| Subject: | RE: [PHP] function definition causing problems? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-103632@lists.php.net to get a copy of this message | ||
I thought this syntax, an unquoted key name, was deprecated ;)
From the manual at http://www.php.net/manual/en/language.types.array.php:
"You should always use quotes around an associative array index."
Kirk
> Nope, use:
>
> echo "This script is called $_SERVER[PHP_SELF]";