public function fileName($filename, $withExt = true)
    {
        return $withExt ? pathinfo($filename, PATHINFO_BASENAME) : pathinfo($filename, PATHINFO_FILENAME);
    }
public function fileName($filename, $withExt = true)
    {
        return $withExt ? pathinfo($filename, PATHINFO_BASENAME) : pathinfo($filename, PATHINFO_FILENAME);
    }
public function fileName ( $ filename , $ withExt = true ) { return $ withExt ? pathinfo ( $ filename , PATHINFO_BASENAME ) : pathinfo ( $ filename , PATHINFO_FILENAME ) ; }
Get filename with or not extension.

@return string
Get filename with or not extension .