title: explode on empty string returns an array of length 1
body: <p>Is there a split function in PHP that works similar to the JavaScript split()? For some reason explode() returns an array of length 1 when an empty string is given.</p>
  <p>Example:</p>
  <pre><code>$aList = explode(&quot;,&quot;, &quot;&quot;);    -&gt; to return a 0-length array
  $aList = explode(&quot;,&quot;, &quot;1&quot;);   -&gt; to return a 1-length array  $aList[0] = 1
  $aList = explode(&quot;,&quot;, &quot;1,5&quot;); -&gt; to return a 2-length array  $aList[0] = 1 and $aList[1] = 5
  </code></pre>