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: Sat, 16 Feb 2019 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report.
View this page in:
  • English

User Notes:

There are no user contributed notes for this page.