public function getGenre()
    {
        if ($this->genre === null) {
            $match = [];
            preg_match(self::$REGEX_GENRE, $this->output, $match);
            $this->genre = array_key_exists(2, $match) ? trim($match[2]) : '';
        }

        return $this->genre;
    }
public function getGenre()
    {
        if ($this->genre === null) {
            $match = [];
            preg_match(self::$REGEX_GENRE, $this->output, $match);
            $this->genre = array_key_exists(2, $match) ? trim($match[2]) : '';
        }

        return $this->genre;
    }
public function getGenre ( ) { if ( $ this -> genre === null ) { $ match = [ ] ; preg_match ( self :: $ REGEX_GENRE , $ this -> output , $ match ) ; $ this -> genre = array_key_exists ( 2 , $ match ) ? trim ( $ match [ 2 ] ) : '' ; } return $ this -> genre ; }
Return the genre ID3 field from an mp3 file.

@return string
Return the genre ID3 field from an mp3 file .