Vidyalelo
PHP · Q27

Functions

Programming · PHP · question 27

Q27

What will be the output of the following PHP code?

A.
106
B.
103
C.
104
Answer
D.
209

Answer: Option C

Solution

Answer: Option C
Solution:
The ord() function returns the ASCII value of the first character of a string. The ASCII value of h is 104, thus 104 was displayed.