Posted by Kimmo Laine on 06/26/05 19:28
"Ron Eggler @ work" <nospam@hotmail.com> kirjoitti
viestissδ: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
for($j=0;j<=count($spamArray); j++)
{
$outStr.="<option>".$spamArray[$j]."</option>";
}
--
"I am pro death penalty. That way people learn
their lesson for the next time." -- Britney Spears
eternal.erectionN0@5P4Mgmail.com
[Back to original message]
|