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
Is facebook still written in php?
List functions available to sort an php array?
How to write in a file in php?
What is php good for?
Explain me what is the goto statement useful for?
Php being an open source is there any support available to it?
What is a php trait?
How to convert a string to lowercase in php?
Is php a mvc?
How do I start a php session?
What is empty () in php?
What is urlencode and urldecode in php?
What are the special characters you need to escape in double-quoted stings?
What is strcmp () in php?
How to move uploaded files to permanent directory?