ucwords
文字列の各単語の最初の文字を大文字にする
&reftitle.description;
stringucwords
stringstring
stringseparators" \t\r\n\f\v"
文字が "a" (0x61) から "z"
(0x7a) までのアルファベットの場合、
string
の各単語の最初の文字を大文字にしたものを返します。
この関数における "単語" とは、
separators
に含まれていない文字からなる文字列です。
separators のデフォルトはスペース、
フォームフィード、改行、キャリッジリターン、
水平タブ、垂直タブ です。
マルチバイト文字列に対して類似の変換を行うには、
mb_convert_case
を MB_CASE_TITLE モードで使います。
&reftitle.parameters;
string
入力文字列。
separators
オプションの separators で、単語の区切り文字を指定します。
&reftitle.returnvalues;
変更後の文字列を返します。
&reftitle.changelog;
&Version;
&Description;
&strings.changelog.ascii-case-conversion;
&reftitle.examples;
ucwords の例
]]>
ucwords で、区切り文字を指定する例
]]>
ucwords で、追加の区切り文字を指定する例
]]>
&reftitle.notes;
¬e.bin-safe;
&reftitle.seealso;
strtoupper
strtolower
ucfirst
mb_convert_case