But if you echo the $name using ", you will get your expected result = johana. From this case, we can know that if " can process the inside of variable but ' will always show what it contains.
Let me give you an example:
$name = "johana";
$address = "walking street";
echo "$name have house at $address"; //This code will give you result "johana have house at walking street"
echo '$name have house at $address'; //This code will give you result "$name have house at $address"
So, what if I want to posses the content of the variable but using ' only?
The answer is simple, but it will make you work extra for code. You can do it like this
echo $name.' have house at '.$address; //This code will give you result "johana have house at walking street" as expected.
You just need to separate the variable with the string that you need to show up.
For me, I prefer to use ' because I can easily find out what is variable, or what is string that need to be printed on browser.
