id3_get_genre_id

(PECL id3 >= 0.1)
Get the id for a genre
int id3_get_genre_id ( string $genre )

id3_get_genre_id() returns the id for a genre.

Parameters:
genre

Genre name as string.

Returns:

The genre id or FALSE on errors.

Examples:
id3_get_genre_id() example
<?php
$id = id3_get_genre_id("Alternative");
echo $id;
?>

The above example will output:

20
See also:

id3_get_genre_name() -

id3_get_genre_list() -

doc_php
2016-02-24 15:54:19
Comments
Leave a Comment

Please login to continue.