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
How do I make a reset button in html?
What are the four scalar types of php?
How long does a php session last for?
Is php easy language to learn?
what is the current salary package in India for a PHP programmer who has 1.5 years experience
Why do we use hooks?
What is the function of string in c?
How to access a specific character in a string using php?
How long is a php session valid?
What is the difference between characters 34 and x34?
Is polymorphism inherited?
What is dao in php?
What are the different types of statements that are present in php?
What is overloading and overriding in oop?
What is == and === in php?