フォーラム@nifty | フォーラム・サークル | サイトマップ | ヘルプ |
掲示板 コラム お役立ち イベント リンク   | FHPGサイトマップ | お問い合わせ |
TOP > お役立ち > ASP de PHP > ucfirst  

ucfirst 関数

Scripting by かっしい (2004/02/11 登録)

 ASP with VBScript で PHP の便利な関数を定義してみる (3)

ucfirst()

 文字列の最初の文字を大文字にする関数。

関数の説明

 ucfirst (strText as String) as string

 → PHPにおけるこの関数の説明を見る。

ucfirst のソース

<%
Public Function ucfirst(strText)
  Dim intLength

  intLength = Len(strText)
  strText = Ucase(Left(strText,1)) & Right(strText,intLength-1)

  ucfirst = strText

End Function
%>
ページのトップへ
個人情報保護ポリシー
Copyright© NIFTY 2006 All Rights Reserved.
Copyright© FHPG 2006 All Rights Reserved.