title: PHP file listing multiple file extensions
body: <p>Here is my current code:</p>
  
  <pre><code>$files = glob("*.jpg");
  </code></pre>
  
  <p>This works fine. However, I am wanting to list other image types, such as .png, gif etc.</p>
  
  <p>Can I please have some help to modify this above code to get it working. I have tried the following with no success:</p>
  
  <pre><code>$files = glob("*.jpg","*.png","*.gif");
  
  $files = glob("*.jpg,*.png,*.gif);
  </code></pre>
  
  <p>And other variations... </p>