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

What kind of variable is age?

1188


For image work which library is used in php?

1041


How to compare two strings with comparison operators in php?

1014


What does echo mean in php?

1076


What is a composer?

1027


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

1076


Tell me how to set a page as a home page in a php based site?

993


What is laravel php?

1073


Why do we use javascript in php?

1016


Is null or empty c#?

965


What are super global variables in php?

1089


How to take a substring from a given string?

1069


How do functions work?

1174


Does php support overloading?

1084


Which function would you use to insert a record into a database in php?

1096