php - Stripping "track numbers" from a string -


I'm writing a small music game web app, and there was a problem that I could not find the solution. The music file often starts with two digit track numbers, eg:

02 hiding place (Mudula Remix). M4A

or 15 an afternoon on the moon (jet jaguar remix). M4A

How can a PHP script detect the ## * rule and the number and location at the beginning of the string?

I first considered looping between 3 characters and checked that they were numbers and spaces, then the best way to remove substr ?

Thanks in advance!

  resonance ltrim ('02 hidden place (Moodoo remix). M4A ' 0123456789 ');   

View:

Comments