If the variable $a is equal to 5 and variable $b is equal to
character a, what’s the value of $$b?
Can anyone explain how's the value of $$b=100
Answer Posted / annonymus
<?php
$a=5;
echo $b='a'."<br/>";
echo $$b;
?>
output is neither 5 or 100,
it displays
a
but if you try this...
<?php
$user = 'bob';
$holder = 'user';
echo $$holder;
?>
answer becomes like this..
bob
try it....this really really confusing..anyone can give the
exact solution to this????
| Is This Answer Correct ? | 1 Yes | 6 No |
Post New Answer View All Answers
If the variable $var1 is set to 10 and the $var2 is set to the character var1, what's the value of $$var2?
Where is session value stored?
Is it possible to protect special characters in a query string?
Tell me what does the initials of php stand for?
How can I make a script that can be bilingual (supports english, german)?
How can I embed a java program in php file and what changes have to be done in php.ini file?
What is in php 7?
Does php have future?
Does php need apache?
What is the difference between html and php?
What is html used for?
How to download and install php for windows?
What is ci framework in php?
What distinguishes php from something like client side java script?
What are arguments in php?