I don\'t know how to explain this but in simple terms I have seen people using {$variable} when outputting values. I have noticed that {$variable}
As far as I know, you can use for variable $x
echo "this is my variable value : $x dollars";
… but if you don't have any spaces between the variable and the text around it, you should use {}. For example:
echo "this is my variable:{$x}dollars";
because if you wrote it $xdollars it will interpret it as another variable.