preg matching searching for file in folder

Sunday, May 4, 2014

I would like to match file name from directory which I know the starting portion of the file along with underscore. The format of the files will be always mp3. For example the file name 12_title.mp3 should read to a variable if I pass 12. In the directory the starting numbers are unique

any help is appreciated thank you in advance