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

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -