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

How does api connect to database?

547


What does the initials of php stand for?

523


Please explain is it possible to use com component in php?

544


What is curl php?

520


Is array empty php?

492






What is advanced php programming?

528


What is the use of php and mysql?

539


What is magic function in php?

529


Is runtime polymorphism overriding?

479


What is use of in_array() function in php?

529


Which have the fastest execution between mysql_fetch_array() and mysql_fetch_assoc()

1803


Tell me what is the default session time in php?

533


Can we use get instead of post?

486


What are the main error types in php and how do they differ?

819


How to remove the new line character from the end of a text line?

504