Search Results

Search found 1 results on 1 pages for 'm4k00'.

Page 1/1 | 1 

  • PHP equivalent to JavaScript's string split method

    - by m4k00
    I'm working with this on JavaScript: <script type="text/javascript"> var sURL = "http://itunes.apple.com/us/app/accenture-application-for/id415321306?uo=2&mt=8&uo=2"; splitURL = sURL.split('/'); var appID = splitURL[splitURL.length - 1].match(/[0-9]*[0-9]/)[0]; document.write('<br /><strong>Link Lookup:</strong> <a href="http://ax.itunes.apple.com/WebObjects/MZStoreServices.woa/wa/wsLookup?id=' + appID + '&country=es" >Lookup</a><br />'); </script> This script takes the numeric ID and gives me 415321306. So my question is how can I do the same thing but using PHP. Best regards.

    Read the article

1