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 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 by rajesh Guru (39,140 points)

Related questions

0 votes
2 answers 27 views
27 views asked by sara Guru (24,570 points)
0 votes
1 answer 46 views
0 votes
1 answer 50 views
50 views asked by smith Geek (15,340 points)
0 votes
2 answers 27 views
0 votes
2 answers 38 views
...