/** * Получит имя файла из строки, содержащей полный путь */ function getFileName($path) { return basename($path); }