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

What are string functions?

503


Is php dead 2019?

536


Is null in php?

524


What are the delimiters in php?

517


How to find current date and time?

488






What is difference between print and echo in php?

467


Does cors prevent csrf?

522


How to set session.gc_maxlifetime properly?

557


How many columns can be added in a table in mysql?

486


Does exist in php?

521


How to write comment in php?

681


How to create reusable code in php?

534


How to generate a form?

607


How many days will it take to learn php?

527


How to get the ip address of the client?

8691