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 php crud api?
What does $_cookie means?
How to get no. of rows using MYSQL function?
What is cURL in PHP?
How does php strcmp work?
Which function is used to read a single character from a file in PHP.
How can we check the value of a given variable is a number?
Is laravel better than codeigniter?
Php program to generate fibonacci series?
What is the use of Mbstring?
Tell me what are the __construct() and __destruct() methods in a php class?
What is echo and print in php?
What is difference between get and post in php?
Is it more secure to use cookies to transfer session ids?
What is the function of string in c?