title: Array_Filter remove
body: <p>I also have a problem with the array_filtrer function, more specifically I have an array of free spaces, ex:</p>
  
  <pre class="lang-php prettyprint-override"><code>Array (
      [0] =&gt; "val1"
      [1] =&gt; 
      [2] =&gt; "val2"
      [3] =&gt; 
      );
  </code></pre>
  
  <p>When I use the array_filtrer function, it only removes my last key (in the example above, 3) the middle keys remaining there (as in the example above, the key 1), it can create a solution for it so that removes any key with that null space?</p>
  
  <p>I got the array from a .txt file after I rewrote some parts of it, and at the end of the day I ran into such a problem.</p>