You are here: Re: Printing array items sent in a form « PHP Programming Language « IT news, forums, messages
Re: Printing array items sent in a form

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация