php-doc-en/reference/mbstring/functions/mb-strtolower.xml
Philip Olson a19afca437 WS, preparation for the new doc style
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@242741 c90b9560-bf6c-de11-be94-00142212c4b1
2007-09-20 20:55:38 +00:00

76 lines
2.3 KiB
XML

<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.7 $ -->
<refentry xml:id="function.mb-strtolower" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>mb_strtolower</refname>
<refpurpose>Make a string lowercase</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<type>string</type><methodname>mb_strtolower</methodname>
<methodparam><type>string</type><parameter>str</parameter></methodparam>
<methodparam choice="opt"><type>string</type><parameter>encoding</parameter></methodparam>
</methodsynopsis>
<para>
<function>mb_strtolower</function> returns <parameter>str</parameter>
with all alphabetic characters converted to lowercase.
</para>
<para>
<parameter>encoding</parameter> specifies the encoding of
<parameter>str</parameter>; if omitted, the internal character encoding
value will be used.
</para>
<para>
For more information about the Unicode properties, please see <link
xlink:href="&url.unicode.reports;">&url.unicode.reports;</link>.
</para>
<para>
By contrast to <function>strtolower</function>, 'alphabetic' is
determined by the Unicode character properties. Thus the behaviour
of this function is not affected by locale settings and it can convert
any characters that have 'alphabetic' property, such as A-umlaut (&Auml;).
</para>
<para>
<example>
<title><function>mb_strtolower</function> example</title>
<programlisting role="php">
<![CDATA[
<?php
$str = "Mary Had A Little Lamb and She LOVED It So";
$str = mb_strtolower($str);
echo $str; // Prints mary had a little lamb and she loved it so
?>
]]>
</programlisting>
</example>
</para>
<para>
See also <function>strtolower</function>,
<function>mb_strtoupper</function> and
<function>mb_convert_case</function>.
</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:"../../../../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
-->