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 / php don

All guys who are saying ans is 100 are not good in programming.
The right answerer is 5 so guys don't put wrong answerers
and to the guys who are referring plz do check this code its
simple to find out by yourself then to believe this stupids
who say its reference and 100 actual answer is 5 and not 100
<?php
$a=5;
$b="a";
echo $$b;
?>

Is This Answer Correct ?    5 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Do you know what is the function func_num_args() used for?

554


Explain preg_Match and preg_replace?

543


Does mysql need php?

446


Why is used in php?

519


What is php limit?

511






Why is php used for web development?

491


What are the Advantages and Application Areas of PHP?

505


What is reference variable php?

494


Does php support multiple inheritances?

519


What is the scope of a variable defined outside a function?

533


What is overriding in php?

605


How to protect special characters in query string?

524


Who is the father or inventor of php?

575


How do I expire a php session after 30 minutes?

529


What software is required to run php?

538