Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...



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 / annonymus

<?php
$a=5;
echo $b='a'."<br/>";
echo $$b;

?>
output is neither 5 or 100,
it displays
a



but if you try this...
<?php
$user = 'bob';
$holder = 'user';
echo $$holder;
?>
answer becomes like this..
bob


try it....this really really confusing..anyone can give the
exact solution to this????

Is This Answer Correct ?    1 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is php an oop?

1036


Does php need html?

1043


Xplain is it possible to use com component in php?

1000


How can we submit from without a submit button?

1057


What is php and sql?

1176


How can we pass the variable through the navigation between the pages?

1060


What is the meaning of die in php?

1052


Do while loops?

1030


How is it possible to remove escape characters from a string?

1191


Does empty check for null?

1020


When do sessions end?

1010


Can you use both this () and super () in a constructor?

1061


Tell me will a comparison of an integer 12 and a string "13" work in php?

1125


How to pass variables and data from php to javascript?

1099


Can you extend a final defined class?

9050