Posted by Hugh on 06/25/05 02:50
Try
$string=implode(' ',$spamArray);
assuming spaces between array elements.
"Ron Eggler @ work" <nospam@hotmail.com> wrote in message
news:3i1ka5FisvioU1@individual.net...
> hi,
>
> I got an array and want to build a string with it's elements, how do i do
> it?
> I tried:
>
> while($j=0;j<=count($spamArray); j++)
> {
> $outStr[$j]="<option>".$spamArray[$j]."</option>"
> }
>
> but:
> Parse error: parse error in /srv/www/htdocs/web2/html/php/nospam/pop.php
on
> line 32
>
> Thank you! :)
>
>
Navigation:
[Reply to this message]
|