KTaglib_MPEG_File::getID3v2Tag

(0.0.1) Returns a ID3v2 object public KTaglib_ID3v2_Tag KTaglib_MPEG_File::getID3v2Tag ([ bool $create = false ] ) Returns a ID3v2 object for the mpeg file. If no ID3v2 Tag is present, an KTaglib_TagNotFoundException is thrown. Returns: Returns the KTaglib_ID3v2_Tag object of the MPEG file or false if there is no ID3v2 tag

KTaglib_MPEG_File::__construct

(0.0.1) Opens a new file public KTaglib_MPEG_File::__construct ( string $filename ) Opens a new MPEG file. Parameters: filename The file to read Examples: Opens a new MP3 file and read the title <?php $mpeg = new KTaglib_MPEG_File('example.mp3'); echo $mpeg->getID3v1Tag()->getTitle(); ?>

KTaglib_MPEG_File::getAudioProperties

(0.0.1) Returns an object that provides access to the audio properties public KTaglib_MPEG_File KTaglib_MPEG_File::getAudioProperties ( void ) Returns an object that provides access to the audio properties of the mpeg file. Returns: Returns an KTaglib_MPEG_AudioProperties object or false.

id3_set_tag

(PECL id3 >= 0.1) Update information stored in an ID3 tag bool id3_set_tag ( string $filename, array $tag [, int $version = ID3_V1_0 ] ) id3_set_tag() is used to change the information stored of an ID3 tag. If no tag has been present, it will be added to the file. Parameters: filename The path to the MP3 file Instead of a filename you may also pass a valid stream re

id3_remove_tag

(PECL id3 >= 0.1) Remove an existing ID3 tag bool id3_remove_tag ( string $filename [, int $version = ID3_V1_0 ] ) id3_remove_tag() is used to remove the information stored of an ID3 tag. Parameters: filename The path to the MP3 file Instead of a filename you may also pass a valid stream resource version Allows you to specify the

id3_get_frame_short_name

(PECL id3 >= 0.2) Get the short name of an ID3v2 frame string id3_get_frame_short_name ( string $frameId ) id3_get_frame_short_name() returns the short name for an ID3v2 frame. Parameters: frameId An ID3v2 frame Returns: Returns the frame short name or FALSE on errors. The values returned by id3_get_frame_short_name() are used in the array r

id3_get_genre_list

(PECL id3 >= 0.1) Get all possible genre values array id3_get_genre_list ( void ) id3_get_genre_list() 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. 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

id3_get_tag

(PECL id3 >= 0.1) Get all information stored in an ID3 tag array id3_get_tag ( string $filename [, int $version = ID3_BEST ] ) id3_get_tag() is used to get all information stored in the id3 tag of the specified file. Parameters: filename The path to the MP3 file Instead of a filename you may also pass a valid stream resource version

id3_get_version

(PECL id3 >= 0.1) Get version of an ID3 tag int id3_get_version ( string $filename ) id3_get_version() retrieves the version(s) of the ID3 tag(s) in the MP3 file. If a file contains an ID3 v1.1 tag, it always contains a 1.0 tag, as version 1.1 is just an extension of 1.0. Parameters: filename The path to the MP3 file Instead of a filename you may also pass a valid

id3_get_genre_name

(PECL id3 >= 0.1) Get the name for a genre id string id3_get_genre_name ( int $genre_id ) id3_get_genre_name() returns the name for a genre id. Parameters: genre_id An integer ranging from 0 to 147 Returns: Returns the name as a string. Examples: id3_get_genre_name() example