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

How to check a key exist in an array?

731


What are the benefits of using queries?

698


What is difference between put and post method in http?

669


Is it worth learning php in 2019?

699


How can we determine whether a php variable is an instantiated object of a certain class?

713






How to take a substring from a given string?

672


Explain about looping in PHP?

796


How to create a session? How to remove data from a session?

690


What are the encryption techniques in php?

698


What is pdo classes?

736


What is multidimensional array in php?

712


What is php pathinfo?

738


How to remove a file?

782


Which have the fastest execution between mysql_fetch_array() and mysql_fetch_assoc()

2018


Which of the delimiter is ASP style?

777