glob()関数を使うのが便利です。 パターンマッチ使えるので。※file_exists()はファイル名が判ってないと使えないつまり、ディレクトリ内にファイルが存在するかどうかの判定にも使えます。
Quote saved.
Login to quote this blog
Failed to save quote. Please try again later.
You cannot quote because this article is private.