| View previous topic :: View next topic |
| Author |
Message |
aababu
Joined: 04 Jun 2008 Posts: 78
|
Posted: Mon Dec 14, 2009 6:52 am Post subject: what is the difference between $var and $$var |
|
|
Hi,
Is anybody know what is the difference between $var and $$var.
Thanks in advance |
|
| Back to top |
|
 |
venkatadapa

Joined: 12 May 2008 Posts: 280
|
Posted: Mon Dec 14, 2009 7:08 am Post subject: |
|
|
$var is a variable
$$var is Variable to Variable.
Means see the below example
Example:
Suppose $var "Hello";
$hello "World";
echo $var; will print Hello, echo $$var; will print World. |
|
| Back to top |
|
 |
|