src/Mp3Info.php
private function readId3v1Body($fp) {
        $this->tags1['song'] = trim(fread($fp, 30));
        $this->tags1['artist'] = trim(fread($fp, 30));
        $this->tags1['album'] = trim(fread($fp, 30));
        $this->tags1['year'] = trim(fread($fp, 4));
        $this->tags1['comment'] = trim(fread($fp, 28));
        fseek($fp, 1, SEEK_CUR);
        $this->tags1['track'] = ord(fread($fp, 1));
        $this->tags1['genre'] = ord(fread($fp, 1));
        return 128;
    }
private function readId3v1Body($fp) {
        $this->tags1['song'] = trim(fread($fp, 30));
        $this->tags1['artist'] = trim(fread($fp, 30));
        $this->tags1['album'] = trim(fread($fp, 30));
        $this->tags1['year'] = trim(fread($fp, 4));
        $this->tags1['comment'] = trim(fread($fp, 28));
        fseek($fp, 1, SEEK_CUR);
        $this->tags1['track'] = ord(fread($fp, 1));
        $this->tags1['genre'] = ord(fread($fp, 1));
        return 128;
    }
private function readId3v1Body ( $ fp ) { $ this -> tags1 [ 'song' ] = trim ( fread ( $ fp , 30 ) ) ; $ this -> tags1 [ 'artist' ] = trim ( fread ( $ fp , 30 ) ) ; $ this -> tags1 [ 'album' ] = trim ( fread ( $ fp , 30 ) ) ; $ this -> tags1 [ 'year' ] = trim ( fread ( $ fp , 4 ) ) ; $ this -> tags1 [ 'comment' ] = trim ( fread ( $ fp , 28 ) ) ; fseek ( $ fp , 1 , SEEK_CUR ) ; $ this -> tags1 [ 'track' ] = ord ( fread ( $ fp , 1 ) ) ; $ this -> tags1 [ 'genre' ] = ord ( fread ( $ fp , 1 ) ) ; return 128 ; }
Reads id3v1 tag.
@return int Returns length of id3v1 tag.
Reads id3v1 tag .