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 / birend gupta

<?php
$a=5;
$b='a';
echo $$b;
?>

Output : 5

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Does php support overloading?

574


How can we enable error reporting in php?

475


How to get the value of current session id?

538


How can you tell if a number is even or odd without using any condition or loop?

525


Which is better php or wordpress?

521






Which PHP function would you use to send an email?

602


Is json a string php?

528


What is difference between html and php?

510


What is the use of mysql_real_escape_string() function?

521


How to convert a character to an ascii value?

564


How is it possible to know the number of rows returned in the result set?

552


How to find the length of a string?

553


Tell me which programming language does php resemble to?

510


Which will start a session?

581


Which is the best web server?

534