mirror of
https://github.com/php/doc-ja.git
synced 2026-04-25 00:48:05 +02:00
3a287886ae
git-svn-id: https://svn.php.net/repository/phpdoc/ja/trunk@189347 c90b9560-bf6c-de11-be94-00142212c4b1
68 lines
2.0 KiB
XML
68 lines
2.0 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- $Revision: 1.5 $ -->
|
|
<!-- splitted from ./ja/functions/strings.xml, last change in rev 1.1 -->
|
|
<!-- EN-Revision: 1.3 Maintainer: hirokawa Status: ready -->
|
|
<!-- CREDITS: shimooka -->
|
|
<refentry id="function.ucfirst">
|
|
<refnamediv>
|
|
<refname>ucfirst</refname>
|
|
<refpurpose>文字列の最初の文字を大文字にする</refpurpose>
|
|
</refnamediv>
|
|
<refsect1>
|
|
<title>説明</title>
|
|
<methodsynopsis>
|
|
<type>string</type><methodname>ucfirst</methodname>
|
|
<methodparam><type>string</type><parameter>str</parameter></methodparam>
|
|
</methodsynopsis>
|
|
<para>
|
|
<parameter>str</parameter>の最初の文字がアルファベットであれば、
|
|
それを大文字にします。
|
|
</para>
|
|
<para>
|
|
「アルファベット」かどうかというのは現在のロケールにより決定
|
|
されます。たとえば、デフォルトの "C" ロケールでは、ウムラウトa
|
|
(ä)は変換されません。
|
|
<example>
|
|
<title><function>ucfirst</function>の例</title>
|
|
<programlisting role="php">
|
|
<![CDATA[
|
|
<?php
|
|
$foo = 'hello world!';
|
|
$foo = ucfirst($foo); // Hello world!
|
|
|
|
$bar = 'HELLO WORLD!';
|
|
$bar = ucfirst($bar); // HELLO WORLD!
|
|
$bar = ucfirst(strtolower($bar)); // Hello world!
|
|
?>
|
|
]]>
|
|
</programlisting>
|
|
</example>
|
|
</para>
|
|
<para>
|
|
<function>strtoupper</function>, <function>strtolower</function>,
|
|
<function>ucwords</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
|
|
-->
|