In PHP and some other scripting languages have the $var syntax while Java and other languages we can do just var.
Is there any theory behind it? Does it help them to parse. If not why would they choose to tack on an extra character in front?
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.
It prevents variable names conflicting with language keywords, and allows them to be interpolated in strings.