|
update : 2015.11.03
php.shukuma.com검색:
|
id3_get_tag(PECL id3 >= 0.1) id3_get_tag — Get all information stored in an ID3 tag 설명
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. 인수
반환값Returns 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. 예제
Example #1 id3_get_tag() example
<?php위 예제의 출력 예시:
Array
(
[title] => DN-38416
[artist] => Re:\Legion
[album] => Reflections
[year] => 2004
[genre] => 19
)
Example #2 id3_get_tag() example
<?php위 예제의 출력 예시:
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
)
참고
|