A
Q. What will be the output of the following PHP code ?
Code:
<?php
$p = 6; $q = -8; $r = 2;
$s = ++$p && ++$q || ++$r;
echo $s;
echo $p;
?>
$p = 6; $q = -8; $r = 2;
$s = ++$p && ++$q || ++$r;
echo $s;
echo $p;
?>
- Correct Answer - Option(A)
- Views: 22
- Filed under category PHP
- Hashtags:
Discusssion
Login to discuss.