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 do I make a reset button in html?

525


What are the four scalar types of php?

623


How long does a php session last for?

571


Is php easy language to learn?

577


what is the current salary package in India for a PHP programmer who has 1.5 years experience

2496






Why do we use hooks?

509


What is the function of string in c?

534


How to access a specific character in a string using php?

517


How long is a php session valid?

522


What is the difference between characters 34 and x34?

516


Is polymorphism inherited?

534


What is dao in php?

476


What are the different types of statements that are present in php?

549


What is overloading and overriding in oop?

564


What is == and === in php?

509