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 kind of variable is age?
For image work which library is used in php?
How to compare two strings with comparison operators in php?
What does echo mean in php?
What is a composer?
What is the importance of "method" attribute in a html form?
Tell me how to set a page as a home page in a php based site?
What is laravel php?
Why do we use javascript in php?
Is null or empty c#?
What are super global variables in php?
How to take a substring from a given string?
How do functions work?
Does php support overloading?
Which function would you use to insert a record into a database in php?