PHP equivalent to JavaScript's string split method
<p>I'm working with this on JavaScript:</p>

<pre><code>&lt;script type="text/javascript"&gt;
    var sURL = "http://itunes.apple.com/us/app/accenture-application-for/id415321306?uo=2&amp;mt=8&amp;uo=2";
    splitURL = sURL.split('/');
    var appID = splitURL[splitURL.length - 1].match(/[0-9]*[0-9]/)[0];
    document.write('&lt;br /&gt;&lt;strong&gt;Link Lookup:&lt;/strong&gt; &lt;a href="http://ax.itunes.apple.com/WebObjects/MZStoreServices.woa/wa/wsLookup?id=' + appID + '&amp;country=es" &gt;Lookup&lt;/a&gt;&lt;br /&gt;');
&lt;/script&gt;
</code></pre>

<p>This script takes the numeric ID and gives me 415321306.</p>

<p>So my question is how can I do the same thing but using PHP.</p>

<p>Best regards.</p>
