$item="";
for ($i=0; $i<0 ; $i++)
{
$item .= createAnItem();
}
echo $item
I got $item=""
Now. It looks like, unlike C++, the $item within the for is not the same with the $ item before the for. So when I do echo $item I got the original $item, which is ""
What can I do so that $item within the bracket use the $item outside the braket?