/** * @en File parts: name (without extension) * @ru Имя файла бег расширения * * $file_path = '/srv/http/backup.zip'; * * $result = filesystem::file_name($file_path); # string(6) "backup" * * @param string $path Path to the file (the actual existence of a file does not necessary) * * @return string */ public static function file_name($path) { return filesystem::file_part($path, 'filename'); }