/** * Расширение файла * @param $path * @return mixed */ static function fileExtention($path) { $list = F::explode('.', $path, -2); if (sizeof($list) > 1) { return strtolower($list[1]); } else { return ''; } }