1
0
mirror of https://github.com/php/doc-zh.git synced 2026-04-27 01:58:14 +02:00
Files
魔王卷子 41471218ed Update strings 2 (#742)
* Update crypt.xml

* Update fprintf.xml

* Update ltrim.xml

* Update md5-file.xml

* Update md5.xml

* Update nl2br.xml

* Update ord.xml

* Update print.xml

* Update printf.xml

* Update rtrim.xml

* Update sha1-file.xml

* Update sha1.xml

* Update sprintf.xml

* Update str-ireplace.xml

* Update str-pad.xml

* Update str-repeat.xml

* Update str-replace.xml

* Update str-rot13.xml

* Update str-shuffle.xml

* Update str-word-count.xml

* Update strcasecmp.xml

* Update strip-tags.xml

* Update stripos.xml

* Update stripslashes.xml

* Update stristr.xml

* Update strlen.xml

* Update strpbrk.xml

* Update strrchr.xml

* Update strripos.xml

* Update strspn.xml

* Update strstr.xml

* Update strtolower.xml

* Update strtoupper.xml

* Update strtr.xml

* Update substr-compare.xml

* Update substr-count.xml

* Update substr-replace.xml

* Update trim.xml

* Update ucfirst.xml

* Update ucwords.xml

* Update vfprintf.xml

* Update vprintf.xml

* Update vsprintf.xml

* Update wordwrap.xml

* Update language-defs.ent

* Update language-snippets.ent

* Update language-snippets.ent

* Update sprintf.xml
2023-05-14 08:28:06 +08:00

126 lines
3.1 KiB
XML
Raw Permalink 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.
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 54ff7bf8e0f8fa90988cccf6b583517366605f6d Maintainer: daijie Status: ready -->
<!-- CREDITS: mowangjuanzi -->
<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.strtolower">
<refnamediv>
<refname>strtolower</refname>
<refpurpose>将字符串转化为小写</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<type>string</type><methodname>strtolower</methodname>
<methodparam><type>string</type><parameter>string</parameter></methodparam>
</methodsynopsis>
<para>
<parameter>string</parameter> 中所有的 ASCII 字母字符转换为小写并返回。
</para>
<para>
<literal>"A"</literal>0x41)到 <literal>"Z"</literal>(0x5a)范围内的字节会通过将每个字节值加 32 转为相应的小写字母。
</para>
<para>
这可用于转换用 UTF-8 编码的字符串中的 ASCII 字符,但会忽略多字节 UTF-8 字符。要转换多字节非
ASCII 字符,请使用 <function>mb_strtolower</function>
</para>
</refsect1>
<refsect1 role="parameters">
&reftitle.parameters;
<para>
<variablelist>
<varlistentry>
<term><parameter>string</parameter></term>
<listitem>
<para>
输入字符串。
</para>
</listitem>
</varlistentry>
</variablelist>
</para>
</refsect1>
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
返回转换后的小写字符串。
</para>
</refsect1>
<refsect1 role="changelog">
&reftitle.changelog;
<informaltable>
<tgroup cols="2">
<thead>
<row>
<entry>&Version;</entry>
<entry>&Description;</entry>
</row>
</thead>
<tbody>
&strings.changelog.ascii-case-conversion;
</tbody>
</tgroup>
</informaltable>
</refsect1>
<refsect1 role="examples">
&reftitle.examples;
<para>
<example>
<title><function>strtolower</function> 示例</title>
<programlisting role="php">
<![CDATA[
<?php
$str = "Mary Had A Little Lamb and She LOVED It So";
$str = strtolower($str);
echo $str; // 打印 mary had a little lamb and she loved it so
?>
]]>
</programlisting>
</example>
</para>
</refsect1>
<refsect1 role="notes">
&reftitle.notes;
&note.bin-safe;
</refsect1>
<refsect1 role="seealso">
&reftitle.seealso;
<para>
<simplelist>
<member><function>strtoupper</function></member>
<member><function>ucfirst</function></member>
<member><function>ucwords</function></member>
<member><function>mb_strtolower</function></member>
</simplelist>
</para>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->