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 is array filter php?

922


What is factory pattern in php?

925


What are sql functions?

944


Explain how can php and javascript interact?

1033


What is polymorphism php?

987


How break and continue while loop in php?

942


Explain about the $_GET variable of PHP?

1015


Where do we use get and post?

969


Is php a web server?

989


What is instantiation?

2212


List few sensible functions in PHP?

990


What does == mean in php?

971


Can you extend a final defined class?

8983


What is a path Traversal?

1028


What is the best php version for wordpress?

1105