Explode that doesn't return empty strings?
<p>PHP's explode function returns an array of strings split on some provided substring. It will return empty strings like this:</p>

<pre><code>var_dump(explode('/', '1/2//3/'));
array(5) {
  [0]=&gt;
  string(1) "1"
  [1]=&gt;
  string(1) "2"
  [2]=&gt;
  string(0) ""
  [3]=&gt;
  string(1) "3"
  [4]=&gt;
  string(0) ""
}
</code></pre>

<p>Is there some different function or option or anything that would return everything <em>except</em> the empty strings?</p>

<pre><code>var_dump(different_explode('/', '1/2//3/'));
array(3) {
  [0]=&gt;
  string(1) "1"
  [1]=&gt;
  string(1) "2"
  [2]=&gt;
  string(1) "3"
}
</code></pre>
