Vidyalelo
PHP · Q38

Control Structures(Loop In PHP)

Programming · PHP · question 38

Q38

What will be the output of the following PHP code ?

A.
hihellohi1
Answer
B.
hi
C.
hihello
D.
hello

Answer: Option A

Solution

Answer: Option A
Solution:
Upcasting does happen in case,it compares it with 1.0 and thus prints hi and exits.