I’ve seen this in a couple of scripts, but got no clue what it means. As already seen in the title of this thread, the syntax is like this: {$variable1}{$variable2}. Is it equivalent to: $variable1.$variable2 ?
Thanks for help!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Simple answer is yes, it is the same. A variable contained within those brackets outputs that variable.
Note that you can’t do anything like this, sadly:
or
It’s just a quick way of outputting variables so things don’t get all complicated.
Try looking at:
vs
The first is much clearer.
It is much better to put variables in braces because it looks nicer, is clearer to read and also lets you have letters directly after the variable name, e.g: