id3_get_tagGet all information stored in an ID3 tag Description
array id3_get_tag
( string
$filename
[, int $version = ID3_BEST
] )id3_get_tag is used to get all information stored in the id3 tag of the specified file. Parameters
Return ValuesReturns an associative array with various keys like: title, artist, .. The key genre will contain an integer between 0 and 147. You may use id3_get_genre_name to convert it to a human readable string. Examples
Example #1 id3_get_tag example
<?phpThe above example will output something similar to:
Array
(
[title] => DN-38416
[artist] => Re:\Legion
[album] => Reflections
[year] => 2004
[genre] => 19
)
Example #2 id3_get_tag example
<?phpThe above example will output something similar to:
Array
(
[copyright] => Dirty Mac
[originalArtist] => Dirty Mac
[composer] => Marcus Götze
[artist] => Dirty Mac
[title] => Little Big Man
[album] => Demo-Tape
[track] => 5/12
[genre] => (17)Rock
[year] => 2001
)
See Also
|