Search DaTutorials:  
HOME
Php Tutorials
Articles
Basics
Date and Time
File Manipulations
Forms
Functions
General
Interactivity
MySql
Navigation
News,Shoutboxes and Blogs
Language Structure and Data Types
Searching
Security
String Manipulation
User Information and Stats
Search For a Tutorial
Php Reference

id3_get_genre_id

(no version information, might be only in CVS)

id3_get_genre_id -- Get the id for a genre.

Description

int id3_get_genre_name ( string genre)

id3_get_genre_id() returns the if for a genre. If the specified genre is not available in the genre list, id3_get_genre_id() will return FALSE

Note: Instead of a filename you may also pass a valid stream resource.

In an ID3 tag, the genre is stored using a integer ranging from 0 to 147.

Example 1. id3_get_genre_id() example

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

This will output:

20

See also id3_get_genre_list() and id3_get_genre_name().



Copyright © 2001-2004 The PHP Group
All rights reserved.

     Mortgage | Bad Credit Mortgages | RC Cars | Credit Counseling | Bad Credit Mortgages
Home     Link To Us     Ad With Us     Contact Us     Tell A Friend     Affiliates     Blog     MsOfficeHelp