Замена символов - PHP

Костя13 лет в сервисе
Данные заказчика будут вам доступны после подачи заявки
19.11.2015

Найти решение функции function getMDNameFile($file)

function getMDNameFile($file)

    {

        static $ext = false;

        if (!$ext) $ext = preg_replace('|\?.*?|is', '', pathinfo($file, PATHINFO_EXTENSION));

        $file = $this->rootPath . $this->config->get('imgPath') . $this->imageDir . md5(microtime() + mt_rand(1, 100)) . ".$ext";

        if (is_file($file)) return $this->getMDNameFile($file);

        return $file;    

    }

Заявки фрилансеров