CSE :: PHP - CS
-
What will be the output of the following PHP code ?
<?php
$a = 5; $b = -7; $c =0;
$d = ++$a && ++$b || ++$c;
print $d; print $a;
?>
-
What will be the output of the following PHP code ?
<?php
$b = 1; $c = 4; $a = 5;
$d = $b + $c == $a;
print $d;
?>
-
What will be the output of the following PHP code ?
<?php
echo 5 * 9 / 3 + 9;
?>
-
What will be the output of the following PHP code ?
<?php
$var1 = 1 + ++5;
echo $var1;
?>
-
What will be the output of the following PHP code ?
<?php
$var1 = 0;
$var1 = ($var1 + 5)++;
echo $var1;
?>
-
What will be the output of the following PHP code ?
<?php
$var1 = 0;
$var1 = $var1++ + 5;
echo $var1;
?>
-
What will be the output of the following PHP code ?
<?php
$var1 = 0;
$var1 = ++$var1 + 5;
echo $var1;
?>
-
What will be the output of the following PHP code ?
<?php
$var1 = 0;
$var1 = $var1 + 5;
echo $var1++;
?>
-
What will be the output of the following PHP code ?
<?php
$var1 = 1;
echo $var1 = ++$var1 % 2 + ++$var1;
?>
-
What will be the output of the following PHP code ?
<?php
$var1 = 1;
echo $var1 = ++$var1 % 2 + ++$var1;
?>