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
Are there regular expressions in php?
What does == mean in php?
Is null empty php?
What is abstract class in php?
Is string php function?
Which is better php praogramming or cad/cam scope wise and also salaray wise?
When use javascript vs php?
Explain what are the two main string operators?
What's the difference between accessing a class method via -> and via ::?
What are soundex() and metaphone() functions in php?
Should I learn php before wordpress?
What is $_session in php?
How to set session.gc_maxlifetime properly?
What is meant by pear in php? What is the purpose of it?
What is chrome logger?