|
Posted by ED on 02/02/07 15:44
"Michael Fesser" <netizen@gmx.de> wrote in message
news:q9m6s2pue3r8b9bkdkpaq92j3nir2c64d8@4ax.com...
> .oO(Charles)
>
>>Ok, I found out, there's gotta be only one space between the brackets
>>instead of two:
>>
>><select name="lunch[ ]" multiple>
>
> There's gotta be _no_ space!
>
> <select name="lunch[]" multiple="multiple">
>
> Micha
Interestingly, it appears that this array syntax actually does work with a
single space (or a single tab character for that matter):
$foo = array();
$foo[] = 'empty';
$foo[ ] = 'space';
$foo[ ] = 'tab';
print_r($foo);
results in:
Array
(
[0] => empty
[1] => spacechar
[2] => tab
)strange huh?cheers, ED
Navigation:
[Reply to this message]
|