CSE :: PHP - CS
-
What will be the output of the following PHP code ?
<?php
echo $x-- != ++$x;
?>
-
What will be the output of the following PHP code ?
<?php
$auth = 1;
$status = 1;
if ($result = (($auth == 1) && ($status != 0)))
{
print "result is $result";
}
?>
-
What will be the output of the following PHP code ?
<?php
$i = 0;
while ($i = 10)
{
print "hi";
}
print "hello";
?>
-
What will be the output of the following PHP code ?
<?php
$i = "";
while ($i = 10)
{
print "hi";
}
print "hello";
?>
-
What will be the output of the following PHP code ?
<?php
$i = 5;
while (--$i > 0)
{
$i++;
print $i;
print "hello";
}
?>
-
What will be the output of the following PHP code ?
<?php
$i = 5;
while (--$i > 0 && ++$i)
{
print $i;
}<
?>
-
What will be the output of the following PHP code ?
<?php
$i = 5;
while (--$i > 0 || ++$i)
{
print $i;
}
?>
-
What will be the output of the following PHP code ?
<?php
$i = 0;
while(++$i || --$i)
{
print $i;
}
?>
-
What will be the output of the following PHP code ?
<?php
$i = 0;
while (++$i && --$i)
{
print $i;
}
?>
-
What will be the output of the following PHP code ?
<?php
$i = 0;
while ((--$i > ++$i) - 1)
{
print $i;
}
?>