- PHP 手册
- 函数参考
- 音频格式操作
- ID3
- ID3 函数
id3_get_genre_name
(PECL id3 >= 0.1)
id3_get_genre_name — Get the name for a genre id
说明
id3_get_genre_name ( int$genre_id
) : string
id3_get_genre_name() returns the name for a genre id.
参数
-
genre_id
-
An integer ranging from 0 to 147
返回值
Returns the name as a string.
范例
Example #1 id3_get_genre_name() example
<?php
$genre = id3_get_genre_name(20);
echo $genre;
?>
以上例程会输出:
Alternative
参见
- id3_get_genre_list() - Get all possible genre values
- id3_get_genre_id() - Get the id for a genre
User Contributed Notes
There are no user contributed notes for this page.官方地址:https://www.php.net/manual/en/function.id3-get-genre-name.php