I’m learning to program in PHP and I learned that I can print variables with text through different methods but I have a question:
What is the difference between echo $var1 . ' ' . $var2
and echo "{$var1} {$var2}"
in PHP? And what to use?
I don’t understand why do we have use curly brackets and even if it is another method what is the difference between the two.
Thank You!