|
Posted by Rik on 06/06/06 22:19
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,
--
Rik Wasmus
Navigation:
[Reply to this message]
|