Q. What will be the output of the following PHP code ?
Code:<?php
$t = 5;
if ($t-- == ++$t)
{
echo $t;
}
?>
β
Correct Answer: (D)
5
Explanation: First $t = 5 is compared to and then decremented, then incremented and compared to $t = 5.