A
Q. What will be the output of the following PHP code ?
Code:
<?php
$m = 10; $n = -8; $t = 2;
$k = ++$m && ++$n || ++$t;
echo $k;
echo $m;
?>
$m = 10; $n = -8; $t = 2;
$k = ++$m && ++$n || ++$t;
echo $k;
echo $m;
?>
- Correct Answer - Option(C)
- Views: 5
- Filed under category PHP
- Hashtags:
Discusssion
Login to discuss.