On Friday 18 January 2002 15:52, you wrote: So hashes are now $var{'keyname'} (with curly brackets) and arrays are $var[0] (with normal brackets?)
> -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > > * On 18-01-02 at 15:49 > * Marc Logghe said.... > > > 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 > > No idea, but a fella on this list told me [] had been deprecated in > favour of {} Maybe that has something to do with it? > - -- > > Nick Wilson > > Tel: +45 3325 0688 > Fax: +45 3325 0677 > Web: www.explodingnet.com > > > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.0.6 (GNU/Linux) > > iD8DBQE8SDaaHpvrrTa6L5oRAq/iAKCFdCMULk8xWwcT1mMhgPF0Xsj3QwCcCxE+ > M+YsJ4QKu1szbP5tkGScES4= > =bTv8 > -----END PGP SIGNATURE----- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]