C Books Guide and List
C++ Books Guide and List
Best Java Books

3,749 questions

4,049 answers

114 comments

10,705 users

What is the difference between $var and $$var?

0 votes
12 views
asked Jan 2, 2014 by sara Guru (24,570 points)

1 Answer

0 votes
They are both variables. But $var is a variable with a fixed name. $$var is a variable who's name is stored in $var. For example, if $var contains "message", $$var is the same as $message.
answered Jan 2, 2014 by rajesh Guru (39,140 points)

Related questions

0 votes
2 answers 25 views
25 views asked Jan 1, 2014 by sara Guru (24,570 points)
0 votes
1 answer 44 views
0 votes
1 answer 49 views
49 views asked Dec 31, 2013 by smith Geek (15,340 points)
0 votes
2 answers 26 views
26 views asked Dec 31, 2013 by smith Geek (15,340 points)
0 votes
2 answers 37 views
37 views asked Dec 30, 2013 by john Guru (27,140 points)
...