Can someone explain me again variable variable? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Can someone explain me again variable variable?

25th Feb 2016, 12:26 AM
Mrigank Chaurasia
Mrigank Chaurasia - avatar
4 Answers
+ 1
you can specify one variables name using another <?php $a = 'hello'; $hello = "Hi!"; echo $a; ?>
11th Jun 2016, 5:41 PM
sameer saxena
sameer saxena - avatar
0
<?php $a = 'hello'; ?> A variable variable takes the value of a variable and treats that as the name of a variable. In the above example, hello, can be used as the name of a variable by using two dollar signs.
17th Apr 2016, 1:47 AM
Indresh Verma
Indresh Verma - avatar
0
In php, variable is a container, example look at it as a bank vault where u store on keep cash. In the same way, u store in information in a container called variable
11th Jun 2016, 10:34 PM
Emmanuel Uzomah
Emmanuel Uzomah - avatar
0
its simple that means ur assigning/calling same value through another one...
1st Jul 2016, 6:24 AM
Ashish
Ashish - avatar