If I write this code
$var="Sample text";
echo 'The variable is $var';
the output will be : The variable is $var
While I am expecting : The variable is Sample text
I know that I can write it in that way
echo 'The variable is'. $var;
But what about the first code ? why it's not displayed properly?
thanks in advance