현재 위치: > 함수 카테고리 모음> 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>

직접 시도하십시오

유사한 함수
  • 문자열에서 지정된 문자의 마지막 발생을 찾으십시오. strrchr

    strrchr

    문자열에서지정된문자의마지막발생을찾으십
  • 문자열의 MD5 해시 값을 계산하십시오 md5

    md5

    문자열의MD5해시값을계산하십시오
  • 문자열의 첫 번째 발생을 찾으십시오 strstr

    strstr

    문자열의첫번째발생을찾으십시오
  • 문자열에 주어진 서브 스트링이 포함되어 있는지 여부를 결정합니다 str_contains

    str_contains

    문자열에주어진서브스트링이포함되어있는지
  • 문자열을 작은 덩어리로 분할하십시오 chunk_split

    chunk_split

    문자열을작은덩어리로분할하십시오
  • 문자열을 소문자로 변환합니다 strtolower

    strtolower

    문자열을소문자로변환합니다
  • 서브 스트링 교체 str_replace

    str_replace

    서브스트링교체
  • 문자열을 배열로 변환합니다 str_split

    str_split

    문자열을배열로변환합니다
인기 기사