Discussion :: PHP - CS
-
What will be the output of the following PHP code ?
<?php
$i = 0;
while ((--$i > ++$i) - 1)
{
print $i;
}
?>
Answer : Option A
Explanation :
(–$i > ++$i) evaluates to 0 but -1 makes it enters the loop and prints i which is 0.
Be The First To Comment