title: Remove empty values from PHP array but keep 0
body: <p>I have an array </p>
  
  <pre><code>array (size=7)
  0 =&gt; string '2' 
  1 =&gt; string '' 
  2 =&gt; string '' 
  3 =&gt; string '0' 
  4 =&gt; string '' 
  5 =&gt; string '' 
  6 =&gt; string '2.5' 
  </code></pre>
  
  <p>I used:-</p>
  
  <p><code>array_filter()</code> </p>
  
  <p>to remove the null values and it returns </p>
  
  <pre><code>Array ( [0] =&gt; 2 [6] =&gt; 2 )
  </code></pre>
  
  <p><code>array_filter()</code> removes null value and also '0' value.</p>
  
  <p>Any builtin function is available in PHP to remove NULL values only.</p>