id3_get_genre_id

(PECL id3 >= 0.1)

id3_get_genre_idGet the id for a genre

说明

int id3_get_genre_id ( string $genre )

id3_get_genre_id() returns the id for a genre.

参数

genre

Genre name as string.

返回值

The genre id or FALSE on errors.

范例

Example #1 id3_get_genre_id() example

<?php
$id 
id3_get_genre_id("Alternative");
echo 
$id;
?>

以上例程会输出:

20

参见

User Contributed Notes

There are no user contributed notes for this page.