Posted by roN @ work on 06/28/05 08:18
Hi,
why is OutStr=0 after executing below code?
I just want to add all the Items in the Array into a String....the String
should look like this after:
[String]
<option>ElementA</option>
<option>ElementB</option>
<option>ElementC</option>
[/String]
[Code]
$count=count($spamArray);
$outStr="";
for($j=0; $j<$count; $j++ )
{
$outStr+="<option>".$spamArray[$j]."</option>\n";
}
[/Code]
why is $OutStr=0?
Thank you!
--
chEErs
roN
[Back to original message]
|