cvs: phpdoc-fr /reference/id3/functions id3-get-tag.xml

From: Date: Sun, 19 Dec 2004 21:52:26 +0000
Subject: cvs: phpdoc-fr /reference/id3/functions id3-get-tag.xml
Groups: php.doc.fr 
Request: Send a blank email to doc-fr+get-3732@lists.php.net to get a copy of this message
yannick Sun Dec 19 16:52:26 2004 EDT Modified files: /phpdoc-fr/reference/id3/functions id3-get-tag.xml Log: sunc with EN http://cvs.php.net/diff.php/phpdoc-fr/reference/id3/functions/id3-get-tag.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-fr/reference/id3/functions/id3-get-tag.xml diff -u phpdoc-fr/reference/id3/functions/id3-get-tag.xml:1.3 phpdoc-fr/reference/id3/functions/id3-get-tag.xml:1.4 --- phpdoc-fr/reference/id3/functions/id3-get-tag.xml:1.3 Tue Nov 16 16:44:43 2004 +++ phpdoc-fr/reference/id3/functions/id3-get-tag.xml Sun Dec 19 16:52:26 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> -<!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <refentry id="function.id3-get-tag"> <refnamediv> <refname>id3_get_tag</refname> @@ -54,12 +54,6 @@ </screen> </example> </para> - <note> - <simpara> - Actuellement, <function>id3_get_tag</function> supporte uniquement les - versions 1.0 et 1.1. - </simpara> - </note> <para> La clé <literal>genre</literal> doit contenir un entier compris entre 0 et 147. Vous pouvez utiliser la fonction @@ -67,6 +61,46 @@ chaîne lisible humainement. </para> <para> + Depuis la version 0.2, <function>id3_get_tag</function> supporte également les tags + ID3 version 2.2, 2.3 et 2.4. + Pour extraire les informations de ces tags, passez une des constantes ID3_V2_2, ID3_V2_3 + ou ID3_V2_4 en tant que second paramètre. + </para> + <para> + <example> + <title>Exemple avec <function>id3_get_tag</function></title> + <programlisting role="php"> +<![CDATA[ +<?php +$tag = id3_get_tag( "chemin/vers/exemple2.mp3", ID3_V2_3 ); +print_r($tag); +?> +]]> + </programlisting> + &example.outputs.similar; + <screen> +<![CDATA[ +Array +( + [copyright] => Dirty Mac + [originalArtist] => Dirty Mac + [composer] => Marcus Götze + [artist] => Dirty Mac + [title] => Little Big Man + [album] => Demo-Tape + [track] => 5/12 + [genre] => (17)Rock + [year] => 2001 +) +]]> + </screen> + </example> + </para> + <para> + Les tags ID3 v2.x peuvent contenir beaucoup plus d'informations concernant un fichier + MP3 par rapport aux tags ID3 version 1.x. + </para> + <para> Voir aussi <function>id3_set_tag</function>, <function>id3_remove_tag</function> et

« previous php.doc.fr (#3732) next »