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 / mr.kishore

<?php
$a=5;
$b='a';
$$b=100; // at this point $b='a' and when we use $ after
that '$$b becomes $a and we asign this value = 100 so $a
becomes 100;
echo $a;

Is This Answer Correct ?    6 Yes 37 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a string in php?

932


How do you debug php?

919


What is the use of $_request variable?

968


What are the disadvantages of php?

926


What is meant by an associative array?

951


How does cookies work in php?

921


What the use of var_dump()?

995


What are the method available in form submitting?

942


Explain me differences between get and post methods?

959


What is the use of header() function in PHP? What the Limitation of HEADER()?

992


How to create an array in php?

1039


What backslash character will match whitespace?

1001


How do you use an array in excel?

1044


What do the initials of php stand for?

997


Tell me what is use of in_array() function in php?

1027