Explode string php
<pre><code>$string = "|1|2|3|4|";
$array = explode("|", $string, -1); 

foreach ($array as $part) {
    echo $part."-";
}
</code></pre>

<p>I use -1 in explode to skip the last "|" in string. But how do I do if I also want to skip the first "|"?</p>
