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

Explain the purpose of output buffering in php.

512


How to convert a string to lowercase in php?

561


What is php stack?

529


What is the use of return in php?

493


What can php do?

551






What is the difference between explode() and split() functions?

506


Explain about require and include function?

570


Is php front end or back end?

511


How should a model be structured in mvc?

529


How to get no. of rows using MYSQL function?

567


What is the goto statement useful for?

554


How do you check if an arraylist is empty?

515


Is multiple inheritance supported in php?

565


How to terminate the execution of a script in PHP?

574


What new features php7 has in store for us?

567