title: Is There A Difference Between strlen()==0 and empty()?
body: <p>I was looking at some form validation code someone else had written and I saw this:</p>
  
  <pre><code>strlen() == 0
  </code></pre>
  
  <p>When testing to see if a form variable is empty I use the <code>empty()</code> function. Is one way better than the other? Are they functionally equivalent?</p>