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 to terminate the execution of a script in PHP?
How to check a variable is array or not in php?
How do I stop a php script?
What type of errors can be occurred in php?
Can you define an array argument as a reference type?
What is a static variable in php?
What is the use of the function htmlentities?
What is list function with their uses.
How to call javascript function in php without any event?
Explain what are psrs? Choose 1 and briefly describe it?
Which function parses an English textual date or time into Unix timestamp in PHP.
Does php 7 support mysql?
Tell me is it possible to submit a form with a dedicated button?
Does empty check for null?
How to concatenate two strings in php?