uTools-Manuals/docs/php/strtolower.html
2019-04-28 19:00:34 +08:00

98 lines
4.2 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>将字符串转化为小写</title>
</head>
<body class="docs"><div id="layout">
<div id="layout-content"><div id="function.strtolower" class="refentry">
<div class="refnamediv">
<h1 class="refname">strtolower</h1>
<p class="verinfo">(PHP 4, PHP 5, PHP 7)</p><p class="refpurpose"><span class="refname">strtolower</span> &mdash; <span class="dc-title">将字符串转化为小写</span></p>
</div>
<div class="refsect1 description" id="refsect1-function.strtolower-description">
<h3 class="title">说明</h3>
<div class="methodsynopsis dc-description">
<span class="methodname"><strong>strtolower</strong></span>
( <span class="methodparam"><span class="type">string</span> <code class="parameter">$string</code></span>
) : <span class="type">string</span></div>
<p class="para rdfs-comment">
<code class="parameter">string</code> 中所有的字母字符转换为小写并返回。
</p>
<p class="para">
注意 “字母” 与当前所在区域有关。例如,在默认的 “C” 区域,字符 umlaut-Aä就不会被转换。
</p>
</div>
<div class="refsect1 parameters" id="refsect1-function.strtolower-parameters">
<h3 class="title">参数</h3>
<p class="para">
<dl>
<dt>
<code class="parameter">string</code></dt>
<dd>
<p class="para">
输入字符串。
</p>
</dd>
</dl>
</p>
</div>
<div class="refsect1 returnvalues" id="refsect1-function.strtolower-returnvalues">
<h3 class="title">返回值</h3>
<p class="para">
返回转换后的小写字符串。
</p>
</div>
<div class="refsect1 examples" id="refsect1-function.strtolower-examples">
<h3 class="title">范例</h3>
<p class="para">
<div class="example" id="example-5986">
<p><strong>Example #1 <span class="function"><strong>strtolower()</strong></span> 范例</strong></p>
<div class="example-contents">
<div class="phpcode"><pre><span style="color: #000000">
<span style="color: #0000BB">&lt;?php<br />$str&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">"Mary&nbsp;Had&nbsp;A&nbsp;Little&nbsp;Lamb&nbsp;and&nbsp;She&nbsp;LOVED&nbsp;It&nbsp;So"</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">$str&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">strtolower</span><span style="color: #007700">(</span><span style="color: #0000BB">$str</span><span style="color: #007700">);<br />echo&nbsp;</span><span style="color: #0000BB">$str</span><span style="color: #007700">;&nbsp;</span><span style="color: #FF8000">//&nbsp;打印&nbsp;mary&nbsp;had&nbsp;a&nbsp;little&nbsp;lamb&nbsp;and&nbsp;she&nbsp;loved&nbsp;it&nbsp;so<br /></span><span style="color: #0000BB">?&gt;</span>
</span>
</pre></div>
</div>
</div>
</p>
</div>
<div class="refsect1 notes" id="refsect1-function.strtolower-notes">
<h3 class="title">注释</h3>
<blockquote class="note"><p><strong class="note">Note</strong>: <span class="simpara">此函数可安全用于二进制对象。</span></p></blockquote>
</div>
<div class="refsect1 seealso" id="refsect1-function.strtolower-seealso">
<h3 class="title">参见</h3>
<p class="para">
<ul class="simplelist">
<li class="member"><span class="function"><a href="strtoupper.html" class="function" rel="rdfs-seeAlso">strtoupper()</a> - 将字符串转化为大写</span></li>
<li class="member"><span class="function"><a href="ucfirst.html" class="function" rel="rdfs-seeAlso">ucfirst()</a> - 将字符串的首字母转换为大写</span></li>
<li class="member"><span class="function"><a href="ucwords.html" class="function" rel="rdfs-seeAlso">ucwords()</a> - 将字符串中每个单词的首字母转换为大写</span></li>
<li class="member"><span class="function"><a href="mb_strtolower.html" class="function" rel="rdfs-seeAlso">mb_strtolower()</a> - 使字符串小写</span></li>
</ul>
</p>
</div>
</div></div></div></body></html>