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
What does it mean when it says the csrf token is invalid?
Write a program to get second highest number in an array using php?
What is php oop?
What are getters and setters and why are they important?
Why does php need server?
What types of MYSQL function available for affecting columns
What is the tags in PHP is not a valid way to begin and end a PHP code block?
What is the use of 'print' in php?
Which method do you follow to get a record from a million records? (Searching not from database, from an array in php)?
Where are cookies stored php?
What is var_dump function in php?
Are parent constructors called implicitly inside a class constructor?
What is properties of class?
What is self in php?
Why php 7 is faster?