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

Firstly wehave assigned that:
$a=5;
and now we have:
$b=a; //as it has said that $b= character 'a' whose ascii
value=95.

Now we need $$b;
so thw answer becomes:
$$b => $(95).
here 95 will again used as an ascii value and it will
call 'a'.
So the result comes out be 5.
not 100.
Check before writing any silly Question.
for any more doubts contact:: Jasmeet.

Is This Answer Correct ?    49 Yes 24 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which framework is best for php development?

923


Which software is used to run php programs?

942


What is a PHP accelerator?

974


What are the advantages of stored procedures in php?

898


How to remove values saved in the current session?

966


What is the method to execute a php script from the command line?

984


How to compare two strings with comparison operators in php?

904


Explain the types of functions for Splitting String?

950


What does nan stand for computer science?

907


How can we determine whether a php variable is an instantiated object of a certain class?

908


How can I prevent sql-injection in php?

970


which will print out the php call stack?

923


What is the difference between mysql_fetch_array() and mysql_fetch_assoc()?

993


What is the difference between client-side and server-side programming?

1004


Is not null in php?

892