Discussion :: PHP - CS
-
What will be the output of the following PHP code ?
<?php
$i = 5;
while (--$i > 0 && ++$i)
{
print $i;
}<
?>
Answer : Option B
Explanation :
As it is && operator it is being incremented and decremented continuously.
Be The First To Comment