Why does “$temp = 0; echo ~$temp;” print -1?
<p>Can anybody tell the internal procedure of the below code</p>

<pre><code>&lt;? $temp = 0; echo ~$temp; ?&gt; 
   //instead of 1 it displays -1
</code></pre>
