public static function getFilename($path)
    {
        $name = pathinfo($path, PATHINFO_FILENAME);

        $ext = pathinfo($path, PATHINFO_EXTENSION);

        if ($ext) {
            $name .= '.' . $ext;
        }

        return $name;
    }
public static function getFilename($path)
    {
        $name = pathinfo($path, PATHINFO_FILENAME);

        $ext = pathinfo($path, PATHINFO_EXTENSION);

        if ($ext) {
            $name .= '.' . $ext;
        }

        return $name;
    }
public static function getFilename ( $ path ) { $ name = pathinfo ( $ path , PATHINFO_FILENAME ) ; $ ext = pathinfo ( $ path , PATHINFO_EXTENSION ) ; if ( $ ext ) { $ name .= '.' . $ ext ; } return $ name ; }
Get file name from a path.

@param   string $path The file path to get basename.

@return  string  The file name.

@since   2.0
Get file name from a path .