title: How to find a file name inside directoryphp
body: <p>I woul try to develop a function to find an element of file name inside a directory.</p>
  
  <p>Is it possible ?
  name of file : apps_module_name.json</p>
  
  <p>search request could be for example : a or apps or name</p>
  
  <p>I think the glob function must be use ?
  I tried this</p>
  
  <p><code>%$file_name%</code> : is wrong but is something like mysql search than I am looking.</p>
  
  <pre><code> $result = glob(OSCOM::getConfig('dir_root', 'Shop') . $this-&gt;ModuleInfosJson . '/' . %$file_name . '.json');
  </code></pre>