src/Service/Cdn.php
public function getExtFromPath($sPath)
    {
        $sExtension = strpos($sPath, '.') !== false ? substr($sPath, (int) strrpos($sPath, '.') + 1) : $sPath;
        return $this->sanitiseExtension($sExtension);
    }
public function getExtFromPath($sPath)
    {
        $sExtension = strpos($sPath, '.') !== false ? substr($sPath, (int) strrpos($sPath, '.') + 1) : $sPath;
        return $this->sanitiseExtension($sExtension);
    }
public function getExtFromPath ( $ sPath ) { $ sExtension = strpos ( $ sPath , '.' ) !== false ? substr ( $ sPath , ( int ) strrpos ( $ sPath , '.' ) + 1 ) : $ sPath ; return $ this -> sanitiseExtension ( $ sExtension ) ; }
Extract the extension from a path

@param string $sPath The path to extract from

@return string
Extract the extension from a path