PhP Question
How come when I try
$htmlfile=sprintf("./html/%s%d.html",$name,$num);
it works fine but when I try to write $num as a string like so
$htmlfile=sprintf("./html/%s%s.html",$name,$num);
the resulting string gets partially overwritten. Is there a better way to do that? By the way I obtain $name and $num from 'list' of the out of 'explode' .
|