Here is my current code:
$files = glob("*.jpg");
This works fine. However, I am wanting to list other image types, such as .png, gif etc.
Can I please have some help to modify this above code to get it working. I have tried the following with no success:
$files = glob("*.jpg","*.png","*.gif");
$files = glob("*.jpg,*.png,*.gif);
And other variations...
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…