Hi
I've just been looking at this code
foreach ($arr as $key => $value) {
echo "Key: $key; Value: $value<br />\n";
}
and i noticed that the echo line has variables inside the string, whereas I probably would have done it the longer way :
echo "Key: ".$key."; Value: ".$value."<br />\n";
is it acceptable practice to put vars directly in the string like that ? It's certainly shorter but would i run any risks doing it like that ?
thanks