Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Read/Write MP3-Tags
PHP
Tree: cfdf0f2963

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
MP3
README.md
readme.txt

README.md

Работа с MP3 тегами.

Пример:

<?php
set_include_path(__DIR__);
require_once 'MP3/Id3.php';

$id3 = new MP3_Id3('./file.mp3');
$tags = $id3->getTags();

echo '<pre>';
print_r($id3->getMeta());

foreach ($tags as $k => $v) {
    print_r($k . ' - ' . $v);
    echo "\n";
}

$tags->setComment('test2');
$tags->setGenreId(23);
$tags->setUrl('http://example.com');
$tags->setAlbumArtist('test');
$id3->write();

echo '</pre>';
Something went wrong with that request. Please try again.