What will be the output of the following PHP code ?
<?php
$i = 0;
while ((--$i > ++$i) - 1)
{
print $i;
}
?>
<?php
$i = 0;
while ((--$i > ++$i) - 1)
{
print $i;
}
?>
A. 00000000000000000000….infinitely
B. -1-1-1-1-1-1-1-1-1-1…infinitely
C. no output
D. error
Answer: Option A

Join The Discussion