Created
December 16, 2011 04:22
-
-
Save suin/1484450 to your computer and use it in GitHub Desktop.
glob()の結果からファイルだけを抽出する ref: http://qiita.com/items/1388
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$files = glob('/path/to/dir'); | |
$files = array_filter($files, 'is_file'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment