title: PHP: How to search a file using wildcards
body: <p>I need to read a file in PHP, but I only know the end of the filename, so I need to serch the file in a given directory using wildcards: *filename.wav and then return it to the browser.
  Is there a function to do that? or I need to get all the files in the directory and then search one by one?</p>
  
  <p>Thanks for all the comments and help.</p>