$url = "htttp://example.com/images/logo.png"; $file = basename($url); // получение имени файла print $file;