<?php $x=11; if ($x++>11) { echo "$x"; } else { echo "not greater than $x"; } ?> : <pre><code> &lt;?php

 $x=11;
if ($x++&gt;11)
{
    echo "$x";
}
else
{
    echo "not greater than $x";
}
?&gt;
</code></pre>

<p>Output of this code is -
not greater than 12</p>

<p>I want to know why this happens.
Thanks!</p>
