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
What is array filter php?
What is factory pattern in php?
What are sql functions?
Explain how can php and javascript interact?
What is polymorphism php?
How break and continue while loop in php?
Explain about the $_GET variable of PHP?
Where do we use get and post?
Is php a web server?
What is instantiation?
List few sensible functions in PHP?
What does == mean in php?
Can you extend a final defined class?
What is a path Traversal?
What is the best php version for wordpress?