PHP 手冊
前一頁 |  | 下一頁

# XLIX. ID3 Functions

# 介紹

These functions let you read and manipulate ID3 tags. ID3 tags are used in MP3 files to store title of the song, as well as information about the artist, album, genre, year and track number.

Since version 0.2 it is also possible to extract text frames from ID3 v2.2+ tags.

# 需求

建立這個延伸不需要任何外部程式庫。

# 安裝

id3 is part of PECL and can be installed using the PEAR installer. To compile PHP with id3 support, download the sourcecode, put it in php-src/ext/id3 and compile PHP using --enable-id3.

# 執行時期組態

`php.ini`中沒有定義此延伸的組態指令。

# 資源類型

這個延伸沒有定義任何資源。

# Predefined Constants

Most of the id3 functions either let you specify or return a tag version. In order to specify the version please use on of these constants.

`ID3_V1_0` (integer)

  `ID3_V1_0` is used if you are working with ID3 V1.0 tags. These tags may contain the fields title, artist, album, genre, year and comment.

`ID3_V1_1` (integer)

  `ID3_V1_1` is used if you are working with ID3 V1.1 tags. These tags may all information contained in v1.0 tags plus the track number.

`ID3_V2_1` (integer)

  `ID3_V2_1` is used if you are working with ID3 V2.1 tags.

`ID3_V2_2` (integer)

  `ID3_V2_2` is used if you are working with ID3 V2.2 tags.

`ID3_V2_3` (integer)

  `ID3_V2_3` is used if you are working with ID3 V2.3 tags.

`ID3_V2_4` (integer)

  `ID3_V2_4` is used if you are working with ID3 V2.4 tags.

`ID3_BEST` (integer)

  `ID3_BEST` is used if would like to let the id3 functions determine which tag version should be used.

前一頁 | 內容 | 下一頁
ob_iconv_handler | 上一層 | id3_get_frame_long_name