Anyone is here whon knows Variable Variables ??? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Anyone is here whon knows Variable Variables ???

With PHP, you can use one variable to specify another variable's name. So, a variable variable treats the value of another variable as its name. I have read all Tutorial of Variable Variables in SL but I want to further can anyone explain it

15th May 2017, 6:15 AM
Aijaz Ahmed
Aijaz Ahmed - avatar
4 Answers
+ 17
$a = "b"; $a = "c"; echo $b; ........
15th May 2017, 6:18 AM
Valen.H. ~
Valen.H. ~ - avatar
+ 2
$a = "b"; $b = "c"; echo $a; // c
15th May 2017, 6:34 AM
Rose Sevenyears
Rose  Sevenyears - avatar
+ 2
you are correct @rose
15th May 2017, 7:11 AM
Vishnu ks
Vishnu ks - avatar
+ 1
@Vishnu ks Guess we're both correct ,my example is just more simple to get:)
15th May 2017, 7:57 AM
Rose Sevenyears
Rose  Sevenyears - avatar