I am wondering, What is the proper way for inserting PHP variables into a string? This way:
echo \"Welcome \".$name.\"!\" >
I use a dot(.) to concate string and variable. like this-
echo "Hello ".$var;
Sometimes, I use curly braces to concate string and variable that looks like this-
echo "Hello {$var}";