Vidyalelo
PHP · Q4

Control Structures(Loop In PHP)

Programming · PHP · question 4

Q4

What will be the output of the following PHP code ? = 0) print "true"; else print "false"; ?>

A.
true
B.
false
C.
error
D.
no output
Answer

Answer: Option D

Solution

Answer: Option D
Solution:
The nested for loop is not entered if outer condition is false.