mirror of
https://github.com/php/doc-ja.git
synced 2026-04-26 09:28:10 +02:00
dfe8ed6291
git-svn-id: https://svn.php.net/repository/phpdoc/ja/trunk@310816 c90b9560-bf6c-de11-be94-00142212c4b1
105 lines
2.6 KiB
XML
105 lines
2.6 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- $Revision$ -->
|
|
<!-- EN-Revision: 64042ccbff18c092f57ab4cc7547a554ba5b51d5 Maintainer: takagi Status: ready -->
|
|
<refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.lcfirst">
|
|
<refnamediv>
|
|
<refname>lcfirst</refname>
|
|
<refpurpose>文字列の最初の文字を小文字にする</refpurpose>
|
|
</refnamediv>
|
|
|
|
<refsect1 role="description">
|
|
&reftitle.description;
|
|
<methodsynopsis>
|
|
<type>string</type><methodname>lcfirst</methodname>
|
|
<methodparam><type>string</type><parameter>str</parameter></methodparam>
|
|
</methodsynopsis>
|
|
<para>
|
|
<parameter>str</parameter> の最初の文字がアルファベットであれば、
|
|
それを小文字にします。
|
|
</para>
|
|
<para>
|
|
「アルファベット」かどうかというのは現在のロケールにより決定されます。
|
|
たとえば、デフォルトの "C" ロケールでは、a ウムラウト
|
|
(ä) は変換されません。
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="parameters">
|
|
&reftitle.parameters;
|
|
<para>
|
|
<variablelist>
|
|
<varlistentry>
|
|
<term><parameter>str</parameter></term>
|
|
<listitem>
|
|
<para>
|
|
入力文字列。
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
</variablelist>
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="returnvalues">
|
|
&reftitle.returnvalues;
|
|
<para>
|
|
変換後の文字列を返します。
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="examples">
|
|
&reftitle.examples;
|
|
<para>
|
|
<example>
|
|
<title><function>lcfirst</function> の例</title>
|
|
<programlisting role="php">
|
|
<![CDATA[
|
|
<?php
|
|
$foo = 'HelloWorld';
|
|
$foo = lcfirst($foo); // helloWorld
|
|
|
|
$bar = 'HELLO WORLD!';
|
|
$bar = lcfirst($bar); // hELLO WORLD!
|
|
$bar = lcfirst(strtoupper($bar)); // hELLO WORLD!
|
|
?>
|
|
]]>
|
|
</programlisting>
|
|
</example>
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="seealso">
|
|
&reftitle.seealso;
|
|
<para>
|
|
<simplelist>
|
|
<member><function>ucfirst</function></member>
|
|
<member><function>strtolower</function></member>
|
|
<member><function>strtoupper</function></member>
|
|
<member><function>ucwords</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
|
|
-->
|