title: how do i put my strpos result in my array?
body: <blockquote>
    <p>Hi i have a little problem, i want to filter $array to get only music
    ! but when i run it , it displays everything in my folder include .jpg
    ,.. and . sorry if i'm not clear , English is not my native language.
    Thanks</p>
  </blockquote>
  
  <pre><code>$repertoire = "Classic";
      $array = scandir($repertoire);
      $arraymp3 = array();
  
  
      foreach ($array as $element) {
          if (strpos($element, '.mp3'));{
              $arraymp3[] = $element;             
          }
      }
  </code></pre>