what does two back to back $ behind a variable means. Like this
$$id
where can I find more information on that
Thanks
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.
In PHP,
$$means you are about to inflict years of pain and suffering on at least one maintenance programmer. Note that you might wind up being that maintenance programmer.It is a variable variable. Imagine this:
if there was no such thing as arrays, you might try something like this:
luckily we do have arrays so please don’t use variable variables unless you are doing something convoluted and magical
*and have no other choice.*: Please don’t do convoluted magical things, either.