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

How to terminate the execution of a script in PHP?

1043


How to check a variable is array or not in php?

1016


How do I stop a php script?

971


What type of errors can be occurred in php?

984


Can you define an array argument as a reference type?

923


What is a static variable in php?

1063


What is the use of the function htmlentities?

1104


What is list function with their uses.

969


How to call javascript function in php without any event?

958


Explain what are psrs? Choose 1 and briefly describe it?

972


Which function parses an English textual date or time into Unix timestamp in PHP.

1004


Does php 7 support mysql?

1009


Tell me is it possible to submit a form with a dedicated button?

952


Does empty check for null?

964


How to concatenate two strings in php?

1087