select - PHP - Find File in Directory By File Name -
i have directory full of filenames contain unix timestamps.
file_1434320602.data file_1434320352.data file_1434320112.data file_1434320032.data how loading them in php can select 1 needed?
there many ways can it. simplest in case glob:
$files = glob('/path/to/file_*.data'); print_r($files);
Comments
Post a Comment