Thread: PhP Question
View Single Post
Old 02-17-2008, 04:24 AM  
ChargebackJoe
Confirmed User
 
Join Date: May 2006
Posts: 356
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' .
__________________
Buy PPC Traffic
ChargebackJoe is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote