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

Is php session id unique?

537


How can a cross-site scripting attack be prevented by php?

541


iam mca post graduate in 2010 not getting job in JAVA so iam looking for carear in php as market demand is high so it is best option to try for php or not

1460


How to take a substring from a given string?

541


What is the string concatenation operator in php?

528






How to remove duplicate values from a PHP Array?

547


What are php string functions?

537


How will you calculate days between two dates in PHP?

545


How to set session.gc_divisor properly?

601


Which software is best for php?

528


Explain some of the php array functions?

584


What are the advantages of stored procedures?

557


Does jwt protect against csrf?

489


Why do we need session?

547


What is the difference between $message and $$message in php?

432