Vidyalelo
PHP · Q40

Control Structures(Loop In PHP)

Programming · PHP · question 40

Q40

What will be the output of the following PHP code ?

A.
1hello
B.
1hi
Answer
C.
1hi1
D.
error

Answer: Option B

Solution

Answer: Option B
Solution:
Print returns 1,thus it gives case 1.