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
$var1 = 3;
print $var = ++$var;
?>
-
What will be the output of the following PHP code ?
<?php
$var1 = 3;
print ++$var++;
?>
-
What will be the output of the following PHP code ?
<?php
$i = 0; $j = 1; $k = 2;
print !(($i + $k) < ($j - $k));
?>
-
What will be the output of the following PHP code ?
<?php
$i = 0;$j = 1;$k = 2;
print !(( + + $i + $j) > ($j - $k));
?>
-
What will be the output of the following PHP code ?
<?php
$i = 0;$j = 1;$k = 2;
print (( + + $i + $j) >! ($j - $k));
?>
-
What will be the output of the following PHP code ?
<?php
$a = 0x6db7;
print $a<<6;
?>
-
What will be the output of the following PHP code ?
<?php
$a = 'a' ;
print $a * 2;
?>
-
What will be the output of the following PHP code ?
<?php
$a = '4' ;
print + + $a;
?>
-
What will be the output of the following PHP code ?
<?php
$a = '12345';
print "qwe{$a}rty";
?>