Re: strange problem
| From: | Malte Fucks | Date: | Thu, 18 Jan 2001 15:00:02 +0000 |
| Subject: | Re: strange problem | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-81083@lists.php.net to get a copy of this message | ||
hmmm
try
$coding = "%coding";
$a[$coding]='whatever this array shall contain';
please let me know if it worked...
diggn
----- Original Message -----
From: "Marc Logghe" <marc.nospam.logghe@devgen.com>
To: <php-general@lists.php.net>
Sent: Friday, January 18, 2002 3:44 PM
Subject: [PHP] strange problem
> Hi,
> my PHP (PHP Version 4.1.1) suddenly does not take this anymore:
> $a['color'] = 'red';
> I get this error: Parse error: parse error, expecting `T_STRING' or
>
T_VARIABLE' or T_NUM_STRING'
> when I remove the quotes around the key, it works.
> Problem is , that a certain key is "%coding" (I know, I know, I should not
> use non-alphanumerics, but it used to work) and this key I cannot use
> anymore: php does not take %coding, nor '%coding', nor "%coding".
> Can someone help me out ?
> Marc
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>