private function extractFileNameBase($filePath)
    {
        $directories = explode('/', $filePath);
        $fileName = array_pop($directories);
        $fileNameParts = explode('.', $fileName);
        if (count($fileNameParts) > 1) {
            $extension = array_pop($fileNameParts);
        }
        $result = implode('.', $fileNameParts);
        return $result;
    }
private function extractFileNameBase($filePath)
    {
        $directories = explode('/', $filePath);
        $fileName = array_pop($directories);
        $fileNameParts = explode('.', $fileName);
        if (count($fileNameParts) > 1) {
            $extension = array_pop($fileNameParts);
        }
        $result = implode('.', $fileNameParts);
        return $result;
    }
private function extractFileNameBase ( $ filePath ) { $ directories = explode ( '/' , $ filePath ) ; $ fileName = array_pop ( $ directories ) ; $ fileNameParts = explode ( '.' , $ fileName ) ; if ( count ( $ fileNameParts ) > 1 ) { $ extension = array_pop ( $ fileNameParts ) ; } $ result = implode ( '.' , $ fileNameParts ) ; return $ result ; }
Return file name base, without directories and without extension

@param string $filePath
@return string
Return file name base without directories and without extension