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 variable give example?
How send email using php?
What is $_ files in php?
How to get the length of string?
What is the default session time in php?
What is the difference between md5(), crc32() and sha1() crypto on php?
What is the use of header in php?
What is difference between action hook and filter hook?
I am trying to assign a variable the value of 0123, but it keeps coming up with a different number, what is the problem?
How to remove the new line character from the end of a text line in php?
Are php session secure?
what is CURL?
How can we encrypt the password using php?
Why is facebook still using php?
How can I learn php fast?