title: Check if array empty in php
body: <p>No doubt it has been discussed few million times here and yes once again I am posting something related with it.</p>
  
  <p>I have the following code.</p>
  
  <pre><code>$address = "#&amp;#&amp;#&amp;";
  $addr = explode("#&amp;",$address);
  </code></pre>
  
  <p>it returns</p>
  
  <pre><code>Array
  (
      [0] =&gt; 
      [1] =&gt; 
      [2] =&gt; 
      [3] =&gt; 
  )
  </code></pre>
  
  <p>Now the values are empty.So I am doing a check.</p>
  
  <pre><code>If(!empty($addr))
  {
  echo 'If print then something wrong';
  }
  </code></pre>
  
  <p>And it still prints that line.Not frustrated yet but will be soon</p>