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
What is empty php?
What is the difference between apache and tomcat?
How to copy a file?
What is use of count() function in php?
What is the use of @ in php?
What is api example?
What are the different loops in php?
How failures in execution are handled with include() and require() functions?
What is prepared statement in php?
What does echo mean in php?
Do you know what is the function func_num_args() used for?
How to join multiple strings stored in an array into a single string?
What are the characteristics of php?
What is a controller in php?
Explain mail function in PHP with syntax?