?
What will be the output of the following PHP code ?
What will be the output of the following PHP code ?
<?php
$x = 0;
if ($x == 1)
if ($x >= 0)
print "true";
else
print "false";
?>
<?php
$x = 0;
if ($x == 1)
if ($x >= 0)
print "true";
else
print "false";
?>
Answer & Solution
Correct Answer:
Option
D
The nested for loop is not entered if outer condition is false.
Join the Discussion
Login to post a comment or share your explanation.
Login