ExamVeda
Login
Home
Control Structures(Loop in PHP)
?

What will be the output of the following PHP code ?
<?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.
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.