in reply to regarding hash keys
Off-Topic:my %hash = ('key 1' => 'value1');
Also note that PHP allows trailing commas, but not in a function parameter list. Crazy.$hash = array( title => 'Hello World', 'class' => 'this key has to be explicitly quoted', );
UPDATE: silly /me - you need to quote keys that contain \W (that is, non alpha-numeric). Thanks liz and Anonymous Monk. :)
UPDATE 2: thanks for catching that YuckFoo
jeffa
L-LL-L--L-LL-L--L-LL-L-- -R--R-RR-R--R-RR-R--R-RR B--B--B--B--B--B--B--B-- H---H---H---H---H---H--- (the triplet paradiddle with high-hat)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: regarding hash keys
by liz (Monsignor) on Sep 09, 2003 at 15:32 UTC | |
|
Re: Re: regarding hash keys
by Anonymous Monk on Sep 09, 2003 at 15:42 UTC | |
|
Re: Re: regarding hash keys
by YuckFoo (Abbot) on Sep 09, 2003 at 21:08 UTC | |
by DrHyde (Prior) on Sep 10, 2003 at 08:09 UTC |