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 a string in php?
How do you debug php?
What is the use of $_request variable?
What are the disadvantages of php?
What is meant by an associative array?
How does cookies work in php?
What the use of var_dump()?
What are the method available in form submitting?
Explain me differences between get and post methods?
What is the use of header() function in PHP? What the Limitation of HEADER()?
How to create an array in php?
What backslash character will match whitespace?
How do you use an array in excel?
What do the initials of php stand for?
Tell me what is use of in_array() function in php?