php-doc-en/reference/id3/functions/id3-get-genre-id.xml
2004-08-12 13:20:58 +00:00

69 lines
1.7 KiB
XML

<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.4 $ -->
<refentry id="function.id3-get-genre-id">
<refnamediv>
<refname>id3_get_genre_id</refname>
<refpurpose>Get the id for a genre</refpurpose>
</refnamediv>
<refsect1>
<title>Description</title>
<methodsynopsis>
<type>int</type><methodname>id3_get_genre_id</methodname>
<methodparam><type>string</type><parameter>genre</parameter></methodparam>
</methodsynopsis>
<para>
<function>id3_get_genre_id</function> returns the id for a genre. If the
specified genre is not available in the genre list, <function>id3_get_genre_id</function>
will return &false;
</para>
<para>
In an ID3 tag, the genre is stored using a integer ranging from 0 to
147.
</para>
<para>
<example>
<title><function>id3_get_genre_id</function> example</title>
<programlisting role="php">
<![CDATA[
<?php
$id = id3_get_genre_id("Alternative");
echo $id;
?>
]]>
</programlisting>
<para>
This will output:
</para>
<screen>
<![CDATA[
20
]]>
</screen>
</example>
</para>
<para>
See also <function>id3_get_genre_list</function> and <function>id3_get_genre_name</function>.
</para>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"../../../../manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->