Monali Mishra
What is the difference between $name and $$name?
by monali mishra - Monday, 12 March 2012, 04:38 AM
 

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

Picture of Avinash M
Re: What is the difference between $name and $$name?
by Avinash M - Thursday, 19 April 2012, 03:14 AM
 

$name is a variable and $$name is a variable variables.

ex;

<?php

$a="hi";

$$a=" how are you";

echo "$a $($a)"

>?

hence output wil be now $a is hi and $hi is how are you and finally it wil be hi how r you.


Skip Navigation

Navigation

Skip OpenGurukulSkip Settings

Settings