title: How do I check if array value is empty?
body: <p>Here is my array ouput</p>
  
  <pre><code>Array
  (
      [1] =&gt; 1
      [2] =&gt; 2
      [3] =&gt;  
  )
  </code></pre>
  
  <p>How do I know the <code>[3] =&gt;</code> is empty?</p>
  
  <pre><code>foreach ($array as $key =&gt; $value) {
      if (empty($value))
          echo "$key empty &lt;br/&gt;";
      else
          echo "$key not empty &lt;br/&gt;";
  }
  </code></pre>
  
  <p>My out put showing all is not empty. What is correct way to check is empty?</p>