title: Is empty() enough or use isset()?
body: <blockquote>
    <p><strong>Note</strong> - I know pretty much about <strong>empty()</strong> and <strong>isset()</strong>, what
    I am asking is the most proper/efficient way of using them.</p>
  </blockquote>
  
  <p>I've just saw at <a href="http://php.net/manual/en/function.empty.php">php.net</a> this sentence under <code>empty()</code> reference:</p>
  
  <blockquote>
    <p>No warning is generated if the variable does not exist. That means
    <strong>empty()</strong> is essentially the concise equivalent to <strong>!isset($var) || $var
    == false</strong>.</p>
  </blockquote>
  
  <p>But again, as I'm mainly working now on other people's apps (either standalone projects, websites using cms or even frameworks) many many times I've seen people writing:</p>
  
  <pre><code>if (isset ($var) &amp;&amp; $var != '')
  // or
  if (isset ($var) &amp;&amp; !empty($var))
  </code></pre>
  
  <p><em>(mainly with $_GET and $_POST variables, but not only)</em>  </p>
  
  <p>As far as I understand manual, snippet below is equivalent:</p>
  
  <pre><code>if (!empty($var))
  </code></pre>
  
  <p>Or am I missing something? What is technically the best way to check existense of variable with value? </p>
  
  <p>I know both functions, their destinations. I just want to know if <code>empty()</code> is all needed to check <em>if is variable set <strong>and</strong> given value</em>. I know that it works, but is it 100% proper and safe?</p>