src/Utilities/Miscellaneous.php
public static function getFileNameWithoutExtension($fileName)
    {
        $matches = [];

        if (is_string($fileName) && (bool)preg_match('|(.+)\.(.+)|', $fileName, $matches)) {
            return $matches[1];
        }

        return '';
    }
public static function getFileNameWithoutExtension($fileName)
    {
        $matches = [];

        if (is_string($fileName) && (bool)preg_match('|(.+)\.(.+)|', $fileName, $matches)) {
            return $matches[1];
        }

        return '';
    }
public static function getFileNameWithoutExtension ( $ fileName ) { $ matches = [ ] ; if ( is_string ( $ fileName ) && ( bool ) preg_match ( '|(.+)\.(.+)|' , $ fileName , $ matches ) ) { return $ matches [ 1 ] ; } return '' ; }
Returns file name without extension

@param string $fileName The file name
@return string
Returns file name without extension