Saturday 22 October 2016

 
$x=11;
if ($x++>11)
{
echo "$x";
}

else
{
echo "not greater than $x";
}
?>


Output of this code is -
not greater than 12




I want to know why this happens.
Thanks!

No comments:

Post a Comment

c++ - Does curly brackets matter for empty constructor?

Those brackets declare an empty, inline constructor. In that case, with them, the constructor does exist, it merely does nothing more than t...