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


Please Help Members By Posting Answers For Below Questions

What is variable give example?

560


How send email using php?

542


What is $_ files in php?

563


How to get the length of string?

576


What is the default session time in php?

533






What is the difference between md5(), crc32() and sha1() crypto on php?

619


What is the use of header in php?

533


What is difference between action hook and filter hook?

496


I am trying to assign a variable the value of 0123, but it keeps coming up with a different number, what is the problem?

506


How to remove the new line character from the end of a text line in php?

529


Are php session secure?

530


what is CURL?

587


How can we encrypt the password using php?

554


Why is facebook still using php?

577


How can I learn php fast?

554