|
Posted by MattMika on 06/06/06 22:44
On Wed, 7 Jun 2006 00:19:38 +0200, "Rik" <luiheidsgoeroe@hotmail.com>
wrote:
>MattMika wrote:
>> How can I properly comma separate the list below?
>>
>> <?
>> while (list($key,$value) = each($Sizes)) {echo "$value, ";}
>>>
>>
>> As you can see this will put a comma after the last value, I'd like to
>> have no comma after the last value. What functions/technique can I
>> accomplish this with?
>
>
>echo implode(', ',$Sizes);
>
>Grtz,
LOL, I knew about implode but was trying to figure it out inside the
while loop, whatta dumbass, no need to do that...
Thnx
Matt Mika
Navigation:
[Reply to this message]
|