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 / adeshsuryan
Correct format of this program is following check out this:
<?php
$a=5;
echo $b=a;
echo $$b;
?>
Dear Annonymus : You assign a constant in $$b not character.
your code is echo $b='a'."<br/>";
where 'a' treats as constant .but above a is a variable
keep this thing in mind.
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
Which function is used to read a single character from a file in PHP.
What is a static variable in php?
What’s the difference between htmlentities() and htmlspecialchars()?
Code to open file download dialog in PHP?
What is the difference between the include() and require() functions?
How arrays are used in php?
Tell me what is pear?
What is design pattern? Explain all including singleton pattern?
What is echo and print in php?
How do I find out the number of parameters passed into function9?
Is php still used?
What is use of count() function in php?
Can php run on windows server?
Is nan in php?
What is the empty function?