It is necessary to find all the files with any extension, why, if there are more than two words in the title, are you not looking? Folders do not need
$str = 'Новый текстовый документ.txt'; echo preg_match('#[a-z0-9A-ZА-Яа-я\s]+\.[az]+#', $str); It is necessary to find all the files with any extension, why, if there are more than two words in the title, are you not looking? Folders do not need
$str = 'Новый текстовый документ.txt'; echo preg_match('#[a-z0-9A-ZА-Яа-я\s]+\.[az]+#', $str); Source: https://ru.stackoverflow.com/questions/765752/
All Articles
*.*? - Alexey Shimansky$temp_files = glob(__dir__.'/*'); foreach($temp_files as $file) {.............}$temp_files = glob(__dir__.'/*'); foreach($temp_files as $file) {.............}- Alexey Shimansky