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

How to select a database in php?

569


How to convert a character to an ascii value?

554


What is substr in php?

522


Is age nominal or ordinal?

504


What are the correct and the most two common way to start and finish a PHP block of code?

625






Tell me which function gives us the number of affected entries by a query?

516


What is php and why we use it?

487


How do you measure variables?

512


How to process the uploaded files?

578


What is the function of trim?

495


What is restful api?

497


What is the difference between Split and Explode in PHP?

567


How do I install php and apache on windows 10?

505


What are the disadvantages of php?

504


Which function is used in php to search a particular value in an array?

501