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 / modi[achir communication]

<?
$a=5;
$b='a';
$$b=100;
$b is a simple variable and $$b is a reference variable that
means in memory $$b will be refer to $b. Suppose in memory
$b variable is in address 100 then $$b will be refer $b at
address 100 that means $$b will contain 100.
?>

Is This Answer Correct ?    11 Yes 15 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does a dependant variable mean?

1020


Which cryptographic functions in php returns the longest hash value?

991


How to assigning a new character in a string using php?

1186


How to convert a character to an ascii value?

1119


How to create a session? How to set a value in session? How to remove data from a session?

974


What is data abstraction in php?

1048


What is use of htmlspecialchars php?

1033


What is the php function that removes the last element of the array and returns it?

968


What are different types of runtime errors in php?

1080


Does php support overloading?

1030


What is the importance of "action" attribute in a html form?

1010


What is stripslashes php?

961


How to return ascii value of character in php?

1168


How does the identity operator ===compare two values in PHP?

1087


What is a model in php?

1058