Vidyalelo
PHP · Q31

Control Structures(Loop In PHP)

Programming · PHP · question 31

Q31

What will be the output of the following PHP code ?

A.
hellolength
B.
5
Answer
C.
hi
D.
error

Answer: Option B

Solution

Answer: Option B
Solution:
The function strlen($a) gives the length of the string,5, which is considered true.