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 / mr.kishore
<?php
$a=5;
$b='a';
$$b=100; // at this point $b='a' and when we use $ after
that '$$b becomes $a and we asign this value = 100 so $a
becomes 100;
echo $a;
| Is This Answer Correct ? | 6 Yes | 37 No |
Post New Answer View All Answers
What is basic php?
Is php case sensitive?
What is the output of the following php code?
Explain Constant in Class?
What is the meaning of die in php?
What is the difference between $var and $$var?
How to find the length of a string?
What do you use php for?
What is a persistent cookie in php?
What is data abstraction in php?
How php statement is different from php script?
Are there regular expressions in php?
What is singleton design pattern in php?
Is php outdated 2019?
How many types of arrays are there in php?