MP3_Id::setTag() – sets a tag content


require_once 'Id.php';

void MP3_Id::setTag ( mixed $name , mixed $value )


Sets a field

Possible names of tags are:
Tag Meaning
nameTitle of the content
artistsName of band or artist
albumName of the album
yearpublishing year of the album or song
commentsong comment
trackthe number of the track
genregenre of the song
genrenoNumber of the genre


mixed $name

Name of the tag to set or hash with the key as fieldname

mixed $value

the value to set


This function can not be called statically.

remove tags (Previous) does extra work to get the MPEG frame info (Next)
Last updated: Thu, 26 Nov 2015 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report or add a note.
View this page in:

User Notes:

There are no user contributed notes for this page.