Sophie

Sophie

distrib > Mandriva > 2008.1 > x86_64 > by-pkgid > 05cd670d8a02b2b4a0ffb1756f2e8308 > files > 1695

php-manual-zh-5.2.4-1mdv2008.1.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<HTML
><HEAD
><TITLE
>id3_get_genre_list</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK
REL="HOME"
TITLE="PHP 手册"
HREF="index.html"><LINK
REL="UP"
TITLE="ID3 Functions"
HREF="ref.id3.html"><LINK
REL="PREVIOUS"
TITLE="id3_get_genre_id"
HREF="function.id3-get-genre-id.html"><LINK
REL="NEXT"
TITLE="id3_get_genre_name"
HREF="function.id3-get-genre-name.html"><META
HTTP-EQUIV="Content-type"
CONTENT="text/html; charset=UTF-8"></HEAD
><BODY
CLASS="refentry"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
SUMMARY="Header navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>PHP 手册</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="function.id3-get-genre-id.html"
ACCESSKEY="P"
>上一页</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="function.id3-get-genre-name.html"
ACCESSKEY="N"
>下一页</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><H1
><A
NAME="function.id3-get-genre-list"
></A
>id3_get_genre_list</H1
><DIV
CLASS="refnamediv"
><A
NAME="AEN85401"
></A
><P
>    (PECL)</P
>id3_get_genre_list&nbsp;--&nbsp;Get all possible genre values</DIV
><DIV
CLASS="refsect1"
><A
NAME="AEN85404"
></A
><H2
>说明</H2
>array <B
CLASS="methodname"
>id3_get_genre_list</B
> ( void  )<BR
></BR
><P
>&#13;   <B
CLASS="function"
>id3_get_genre_list()</B
> returns an array containing all
   possible genres that may be stored in an ID3 tag. This list has been created
   by Eric Kemp and later extended by WinAmp.
  </P
><P
>&#13;   This function is useful to provide you users a list of genres from which
   they may choose one. When updating the ID3 tag you will always have to
   specify the genre as an integer ranging from 0 to 147.
  </P
></DIV
><DIV
CLASS="refsect1"
><A
NAME="AEN85413"
></A
><H2
>返回值</H2
><P
>&#13;   Returns an array containing all possible genres that may be stored in an
   ID3 tag.
  </P
></DIV
><DIV
CLASS="refsect1"
><A
NAME="AEN85416"
></A
><H2
>范例</H2
><P
>&#13;   <TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
CLASS="EXAMPLE"
><TR
><TD
><DIV
CLASS="example"
><A
NAME="AEN85419"
></A
><P
><B
>例 1. <B
CLASS="function"
>id3_get_genre_list()</B
> example</B
></P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
CELLPADDING="5"
><TR
><TD
><code><font color="#000000">
<font color="#0000BB">&lt;?php<br />$genres </font><font color="#007700">= </font><font color="#0000BB">id3_get_genre_list</font><font color="#007700">();<br /></font><font color="#0000BB">print_r</font><font color="#007700">(</font><font color="#0000BB">$genres</font><font color="#007700">);<br /></font><font color="#0000BB">?&gt;</font>
</font>
</code></TD
></TR
></TABLE
><P
>上例将输出:</P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
CELLPADDING="5"
><TR
><TD
><PRE
CLASS="screen"
>Array
(
    [0] =&#62; Blues
    [1] =&#62; Classic Rock
    [2] =&#62; Country
    [3] =&#62; Dance
    [4] =&#62; Disco
    [5] =&#62; Funk
    [6] =&#62; Grunge
    [7] =&#62; Hip-Hop
    [8] =&#62; Jazz
    [9] =&#62; Metal
    [10] =&#62; New Age
    [11] =&#62; Oldies
    [12] =&#62; Other
    [13] =&#62; Pop
    [14] =&#62; R&#38;B
    [15] =&#62; Rap
    [16] =&#62; Reggae
    [17] =&#62; Rock
    [18] =&#62; Techno
    [19] =&#62; Industrial
    [20] =&#62; Alternative
    [21] =&#62; Ska
    [22] =&#62; Death Metal
    [23] =&#62; Pranks
    [24] =&#62; Soundtrack
    [25] =&#62; Euro-Techno
    [26] =&#62; Ambient
    [27] =&#62; Trip-Hop
    [28] =&#62; Vocal
    [29] =&#62; Jazz+Funk
    [30] =&#62; Fusion
    [31] =&#62; Trance
    [32] =&#62; Classical
    [33] =&#62; Instrumental
    [34] =&#62; Acid
    [35] =&#62; House
    [36] =&#62; Game
    [37] =&#62; Sound Clip
    [38] =&#62; Gospel
    [39] =&#62; Noise
    [40] =&#62; Alternative Rock
    [41] =&#62; Bass
    [42] =&#62; Soul
    [43] =&#62; Punk
    [44] =&#62; Space
    [45] =&#62; Meditative
    [46] =&#62; Instrumental Pop
    [47] =&#62; Instrumental Rock
    [48] =&#62; Ethnic
    [49] =&#62; Gothic
    [50] =&#62; Darkwave
    [51] =&#62; Techno-Industrial
    [52] =&#62; Electronic
    [53] =&#62; Pop-Folk
    [54] =&#62; Eurodance
    [55] =&#62; Dream
    [56] =&#62; Southern Rock
    [57] =&#62; Comedy
    [58] =&#62; Cult
    [59] =&#62; Gangsta
    [60] =&#62; Top 40
    [61] =&#62; Christian Rap
    [62] =&#62; Pop/Funk
    [63] =&#62; Jungle
    [64] =&#62; Native US
    [65] =&#62; Cabaret
    [66] =&#62; New Wave
    [67] =&#62; Psychadelic
    [68] =&#62; Rave
    [69] =&#62; Showtunes
    [70] =&#62; Trailer
    [71] =&#62; Lo-Fi
    [72] =&#62; Tribal
    [73] =&#62; Acid Punk
    [74] =&#62; Acid Jazz
    [75] =&#62; Polka
    [76] =&#62; Retro
    [77] =&#62; Musical
    [78] =&#62; Rock &#38; Roll
    [79] =&#62; Hard Rock
    [80] =&#62; Folk
    [81] =&#62; Folk-Rock
    [82] =&#62; National Folk
    [83] =&#62; Swing
    [84] =&#62; Fast Fusion
    [85] =&#62; Bebob
    [86] =&#62; Latin
    [87] =&#62; Revival
    [88] =&#62; Celtic
    [89] =&#62; Bluegrass
    [90] =&#62; Avantgarde
    [91] =&#62; Gothic Rock
    [92] =&#62; Progressive Rock
    [93] =&#62; Psychedelic Rock
    [94] =&#62; Symphonic Rock
    [95] =&#62; Slow Rock
    [96] =&#62; Big Band
    [97] =&#62; Chorus
    [98] =&#62; Easy Listening
    [99] =&#62; Acoustic
    [100] =&#62; Humour
    [101] =&#62; Speech
    [102] =&#62; Chanson
    [103] =&#62; Opera
    [104] =&#62; Chamber Music
    [105] =&#62; Sonata
    [106] =&#62; Symphony
    [107] =&#62; Booty Bass
    [108] =&#62; Primus
    [109] =&#62; Porn Groove
    [110] =&#62; Satire
    [111] =&#62; Slow Jam
    [112] =&#62; Club
    [113] =&#62; Tango
    [114] =&#62; Samba
    [115] =&#62; Folklore
    [116] =&#62; Ballad
    [117] =&#62; Power Ballad
    [118] =&#62; Rhytmic Soul
    [119] =&#62; Freestyle
    [120] =&#62; Duet
    [121] =&#62; Punk Rock
    [122] =&#62; Drum Solo
    [123] =&#62; Acapella
    [124] =&#62; Euro-House
    [125] =&#62; Dance Hall
    [126] =&#62; Goa
    [127] =&#62; Drum &#38; Bass
    [128] =&#62; Club-House
    [129] =&#62; Hardcore
    [130] =&#62; Terror
    [131] =&#62; Indie
    [132] =&#62; BritPop
    [133] =&#62; Negerpunk
    [134] =&#62; Polsk Punk
    [135] =&#62; Beat
    [136] =&#62; Christian Gangsta
    [137] =&#62; Heavy Metal
    [138] =&#62; Black Metal
    [139] =&#62; Crossover
    [140] =&#62; Contemporary C
    [141] =&#62; Christian Rock
    [142] =&#62; Merengue
    [143] =&#62; Salsa
    [144] =&#62; Thrash Metal
    [145] =&#62; Anime
    [146] =&#62; JPop
    [147] =&#62; SynthPop
)</PRE
></TD
></TR
></TABLE
></DIV
></TD
></TR
></TABLE
>
  </P
></DIV
><DIV
CLASS="refsect1"
><A
NAME="AEN85425"
></A
><H2
>参见</H2
><P
>&#13;   <P
></P
><TABLE
BORDER="0"
><TBODY
><TR
><TD
><A
HREF="function.id3-get-genre-name.html"
><B
CLASS="function"
>id3_get_genre_name()</B
></A
></TD
></TR
><TR
><TD
><A
HREF="function.id3-get-genre-id.html"
><B
CLASS="function"
>id3_get_genre_id()</B
></A
></TD
></TR
></TBODY
></TABLE
><P
></P
>
  </P
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
SUMMARY="Footer navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="function.id3-get-genre-id.html"
ACCESSKEY="P"
>上一页</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
ACCESSKEY="H"
>起始页</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="function.id3-get-genre-name.html"
ACCESSKEY="N"
>下一页</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>id3_get_genre_id</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="ref.id3.html"
ACCESSKEY="U"
>上一级</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>id3_get_genre_name</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>