0

What is the value of $x=4;$y=8;$x="y";echo $x;

dynamic variables

11th Mar 2017, 5:26 AM
Edwin Bello
Edwin Bello - avatar
2 Réponses
+ 1
It will print the value of variable $y i.e. 8
11th Mar 2017, 5:46 AM
देवेंद्र महाजन (Devender)
देवेंद्र महाजन (Devender) - avatar
+ 1
This method is know as Variable Variables Here as variable $x holds the address of other variable $y and variable y has an integer value 8. this will print 8
13th Mar 2017, 11:46 AM
Javed Saifi
Javed Saifi - avatar