Example is a variable declaration within a function:
global $$link;
What does $$ mean?
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.
A syntax such as
$$variableis called Variable Variable.For example, if you consider this portion of code:
You will get the following output:
Here:
$real_variablecontains'test'$namecontains the name of your variable:'real_variable'$$namemean "the variable thas has its name contained in$name"$real_variable'test'EDIT after @Jhonny’s comment:
Doing a
$$$?Well, the best way to know is to try 😉
So, let’s try this portion of code:
And here’s the output I get:
So, I would say that, yes, you can do
$$$😉