hi people basically I am having a problem with the followinng code:
[PHP]
$names=sizeof($ temp);
$report="total= $names&";
foreach($temp as $list)
$report.="name" .$names--."=".$list." &";
echo $report;
[/PHP]
from the above code the "total" is always undefine when I try to output it even when I put "total =3" anybody know or there is something wrong with my code pls help thx~
[PHP]
$names=sizeof($ temp);
$report="total= $names&";
foreach($temp as $list)
$report.="name" .$names--."=".$list." &";
echo $report;
[/PHP]
from the above code the "total" is always undefine when I try to output it even when I put "total =3" anybody know or there is something wrong with my code pls help thx~
Comment