現在の位置: ホーム> 関数カテゴリ一覧> ucfirst

ucfirst

文字列の最初の文字を大文字に設定します
名前:ucfirst
カテゴリ:
対応言語:php
一言説明:文字列の最初の文字を大文字に変換します。

「Hello」の最初のキャラクターを大文字に変換します。

 <span class="token php language-php"><span class="token delimiter important"><?php</span>
<span class="token keyword">Echo</span> <span class="token function">Ucfirst</span> <span class="token punctuation">(</span> <span class="token string double-quoted-string">"Hello World!"</span> <span class="token punctuation">)</span> <span class="token punctuation">;</span>
<span class="token delimiter important">?></span></span>

自分で試してみてください

類似の関数
  • 千個のセパレーターの数字をフォーマットします number_format

    number_format

    千個のセパレーターの数字をフォーマットし
  • 文字列を出力します print

    print

    文字列を出力します
  • ファイルのSHA1ハッシュ値を計算します sha1_file

    sha1_file

    ファイルのSHA1ハッシュ値を計算します
  • 文字列のすべての新しい行の前にhtml newlineタグを挿入します nl2br

    nl2br

    文字列のすべての新しい行の前にhtmln
  • 文字列を逆にします strrev

    strrev

    文字列を逆にします
  • ロケール情報の設定 setlocale

    setlocale

    ロケール情報の設定
  • 文字列を配列に変換します str_split

    str_split

    文字列を配列に変換します
  • 数字からシングルバイト文字列を生成します chr

    chr

    数字からシングルバイト文字列を生成します
人気記事(にんききじ)