I am wondering, What is the proper way for inserting PHP variables into a string? This way:
echo \"Welcome \".$name.\"!\" >
Since php4 you can use a string formater:
$num = 5; $word = 'banana'; $format = 'can you say %d times the word %s'; echo sprintf($format, $num, $word);
Source: sprintf()