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 basic php?

1050


Is php case sensitive?

938


What is the output of the following php code?

938


Explain Constant in Class?

1037


What is the meaning of die in php?

989


What is the difference between $var and $$var?

1065


How to find the length of a string?

968


What do you use php for?

1007


What is a persistent cookie in php?

988


What is data abstraction in php?

1057


How php statement is different from php script?

998


Are there regular expressions in php?

948


What is singleton design pattern in php?

1000


Is php outdated 2019?

955


How many types of arrays are there in php?

966