PEAR Manual
Prev |  | Next

# MP3_Id::setTag()

MP3_Id::setTag() -- sets a tag content

## Synopsis

    require_once 'Id.php';

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

## Description

Sets a field

Table 37-1. Possible names of tags are:

Tag | Meaning
--- | ---
artists | Name of band or artist
album | Name of the album
year | publishing year of the album or song
comment | song comment
track | the number of the track
genre | genre of the song
genreno | Number of the genre

## Parameter

mixed `$name`

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

mixed `$value`

  the value to set

## Note

This function can not be called statically.

Prev | Home | Next
MP3_Id::remove() | Up | MP3_Id::study()