function.unicode-set-subst-char.html

来自「php的帮助文档,涉及到PHP的案例和基本语法,以及实际应用内容」· HTML 代码 · 共 107 行

HTML
107
字号
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head>  <title>Set the substitution character for string conversion errors</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="ref.unicode.html">Unicode Functions</a></div> <div class="next" style="text-align: right; float: right;"><a href="refs.utilspec.image.html">Image Processing and Generation</a></div> <div class="up"><a href="ref.unicode.html">Unicode Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div><hr /><div id="function.unicode-set-subst-char" class="refentry"> <div class="refnamediv">  <h1 class="refname">unicode_set_subst_char</h1>  <p class="verinfo">(No version information available, might be only in CVS)</p><p class="refpurpose"><span class="refname">unicode_set_subst_char</span> &mdash; <span class="dc-title">Set the substitution character for string conversion errors</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>unicode_set_subst_char</b></b></span>    ( <span class="methodparam"><span class="type"><span class="type unicode">unicode</span></span> <tt class="parameter">$character</tt></span>   )</div>  <p class="para rdfs-comment">   When converting a string from or to unicode, an invalid or unconvertable   character may be encountered. When the conversion error mode is set to    <b><tt>U_CONV_ERROR_SUBST</tt></b>, the character that caused the    error is substituted by a character set by this function. The default    substitution character is <i>?</i>.  </p>  </div> <div class="refsect1 parameters">  <h3 class="title">Parameters</h3>  <p class="para">   <dl>    <dt>     <span class="term"><i><tt class="parameter">character</tt></i></span>     <dd>      <p class="para">       The substitution character to use.      </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 errors">  <h3 class="title">Errors/Exceptions</h3>  <p class="para">   Emits a <b><tt>E_WARNING</tt></b> level error if    <i><tt class="parameter">character</tt></i> is invalid.  </p> </div> <div class="refsect1 notes">  <h3 class="title">Notes</h3>  <div class="warning"><b class="warning">Warning</b><p class="simpara">This function is<em class="emphasis">EXPERIMENTAL</em>. The behaviour of this function, its name, andsurrounding documentation may change without notice in a future release of PHP.This function should be used at your own risk.</p></div> </div> <div class="refsect1 seealso">  <h3 class="title">See Also</h3>  <p class="para">   <ul class="simplelist">    <li class="member"><a href="function.unicode-set-error-mode.html" class="function" rel="rdfs-seeAlso">unicode_set_error_mode()</a></li>    <li class="member"><a href="function.unicode-get-error-mode.html" class="function" rel="rdfs-seeAlso">unicode_get_error_mode()</a></li>    <li class="member"><a href="function.unicode-encode.html" class="function" rel="rdfs-seeAlso">unicode_encode()</a></li>    <li class="member"><a href="function.unicode-decode.html" class="function" rel="rdfs-seeAlso">unicode_decode()</a></li>   </ul>  </p> </div></div><hr /><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="ref.unicode.html">Unicode Functions</a></div> <div class="next" style="text-align: right; float: right;"><a href="refs.utilspec.image.html">Image Processing and Generation</a></div> <div class="up"><a href="ref.unicode.html">Unicode Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div></body></html>

⌨️ 快捷键说明

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