Both functions do the same actually. it's just a matter of which one do YOU like best. Say you want to welcome somebody.
$somebody = "Vincent";
echo "Hello, " . $somebody . "<br>\n";
printf("Hello, %s<br>\n", $somebody);
These lines both say: "Hello, Vincent." That's all. The printf function might be a little more powerful, because you can also format floats with two decimals and stuff like that.
Just use what you like best.
Greetz,
Vincent Driessen
Venlo, The Netherlands