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 select a database in php?
How to convert a character to an ascii value?
What is substr in php?
Is age nominal or ordinal?
What are the correct and the most two common way to start and finish a PHP block of code?
Tell me which function gives us the number of affected entries by a query?
What is php and why we use it?
How do you measure variables?
How to process the uploaded files?
What is the function of trim?
What is restful api?
What is the difference between Split and Explode in PHP?
How do I install php and apache on windows 10?
What are the disadvantages of php?
Which function is used in php to search a particular value in an array?