I am having trouble with printf and sprintf.
I have the following loop that i have created below
$cls3 = 8;
$pnt=1;
while ($pnt <= $cls3)
{
$points = sprintf("point_%s, ",$pnt);
$pnt++;
}
break;
printf("Here are the Points: %s", $points)
Here is the Output for the sprintf below:
Here are the Points: point_8,
However when i do a printf statement instead of an sprintf i get all of the data with this output below:
point_1, point_2, point_3, point_4, point_5, point_6, point_7, point_8,
Why are there different outputs? I want to get the output that printf has for sprintf.
Please help
Thank You
Cameron Seader