Using empty over == ""
<p>It has come to my attention, that using <code>if (empty($var)){</code> is not as efficient as most people like to think. </p>

<p>Rather using <code>empty()</code> I have been using if <code>($Var == ""){</code></p>

<p>because if the textbox/input has a whitespace, it is not empty.. Whereas using <code>==""</code> doesn't notice whitespaces, so if there is a whitespace, and only a white space, my second example is more efficient</p>

<p>is this a bug in php?</p>
