⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 function.id3-remove-tag.html

📁 php的帮助文档,涉及到PHP的案例和基本语法,以及实际应用内容
💻 HTML
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head>  <title>Remove an existing ID3 tag</title>  <meta http-equiv="content-type" content="text/html; charset=UTF-8"> </head> <body><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.id3-get-version.html">id3_get_version</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.id3-set-tag.html">id3_set_tag</a></div> <div class="up"><a href="ref.id3.html">ID3 Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div><hr /><div id="function.id3-remove-tag" class="refentry"> <div class="refnamediv">  <h1 class="refname">id3_remove_tag</h1>  <p class="verinfo">(PECL id3:0.1-0.2)</p><p class="refpurpose"><span class="refname">id3_remove_tag</span> &mdash; <span class="dc-title">Remove an existing ID3 tag</span></p> </div> <div class="refsect1 description">  <h3 class="title">Description</h3>  <div class="methodsynopsis dc-description">   <span class="type">bool</span> <span class="methodname"><b><b>id3_remove_tag</b></b></span>    ( <span class="methodparam"><span class="type">string</span> <tt class="parameter">$filename</tt></span>   [, <span class="methodparam"><span class="type">int</span> <tt class="parameter">$version</tt></span>  ] )</div>  <p class="para rdfs-comment">   <b>id3_remove_tag()</b> is used to remove the information stored   of an ID3 tag.  </p> </div> <div class="refsect1 parameters">  <h3 class="title">Parameters</h3>  <p class="para">   <dl>    <dt>     <span class="term"><i><tt class="parameter">filename</tt></i></span>     <dd>      <p class="para">       The path to the MP3 file      </p>      <p class="para">       Instead of a filename you may also pass a valid stream resource      </p>     </dd>    </dt>    <dt>     <span class="term"><i><tt class="parameter">version</tt></i></span>     <dd>      <p class="para">       Allows you to specify the version of the tag as MP3 files may contain       both, version 1.x and version 2.x tags.      </p>     </dd>    </dt>   </dl>  </p> </div> <div class="refsect1 returnvalues">  <h3 class="title">Return Values</h3>  <p class="para">   Returns <b><tt>TRUE</tt></b> on success or <b><tt>FALSE</tt></b> on failure.  </p> </div> <div class="refsect1 examples">  <h3 class="title">Examples</h3>  <p class="para">   <div class="example">    <p><b>Example #1 <b>id3_remove_tag()</b> example</b></p>    <div class="example-contents"><div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br />$result&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">id3_remove_tag</span><span style="color: #007700">(&nbsp;</span><span style="color: #DD0000">"path/to/example.mp3"</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">ID3_V1_0&nbsp;</span><span style="color: #007700">);<br />if&nbsp;(</span><span style="color: #0000BB">$result&nbsp;</span><span style="color: #007700">===&nbsp;</span><span style="color: #0000BB">true</span><span style="color: #007700">)&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;echo&nbsp;</span><span style="color: #DD0000">"Tag&nbsp;succesfully&nbsp;removed\n"</span><span style="color: #007700">;<br />}<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>    </div>    <div class="example-contents"><p>     If the file is writable and contained a 1.0 tag, this will output:    </p></div>    <div class="example-contents"><pre><div class="cdata"><pre>Tag succesfully removed</pre></div>    </pre></div>   </div>  </p> </div> <div class="refsect1 notes">  <h3 class="title">Notes</h3>  <blockquote><p><b class="note">Note</b>:    <span class="simpara">    Currently <b>id3_remove_tag()</b> only supports version 1.0    and 1.1. If you choose to remove a 1.0 tag and the file contains a 1.1    tag, this tag will be removed, as v1.1 is only an extension of 1.0.   </span>  </p></blockquote> </div> <div class="refsect1 seealso">  <h3 class="title">See Also</h3>  <p class="para">   <ul class="simplelist">    <li class="member"><a href="function.id3-set-tag.html" class="function" rel="rdfs-seeAlso">id3_set_tag()</a></li>    <li class="member"><a href="function.id3-get-tag.html" class="function" rel="rdfs-seeAlso">id3_get_tag()</a></li>    <li class="member"><a href="function.id3-get-version.html" class="function" rel="rdfs-seeAlso">id3_get_version()</a></li>   </ul>  </p> </div></div><hr /><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.id3-get-version.html">id3_get_version</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.id3-set-tag.html">id3_set_tag</a></div> <div class="up"><a href="ref.id3.html">ID3 Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div></body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -