ucfirst - 문자열의 첫 번째 문자를 대문자로 만듭니다.
ucfirst - 문자열의 첫 번째 문자를 대문자로 만듭니다.
설명 ¶
문자열 ucfirst ( 문자열 $str )
str문자가 영문자이면 대문자 가 된 첫 문자를 포함한 문자열을 반환합니다 .
'알파벳'은 현재 로켈에 의해 결정됩니다. 예를 들어, 기본 "C"로케일에서 umlaut-a (ä)와 같은 문자는 변환되지 않습니다.
매개 변수 ¶
str
입력 문자열.
반환 값 ¶
결과 문자열을 반환합니다.
예 ¶
Example # 1 ucfirst () 예제
<?php
$foo = 'hello world!';
$foo = ucfirst($foo); // Hello world!
$bar = 'HELLO WORLD!';
$bar = ucfirst($bar); // HELLO WORLD!
$bar = ucfirst(strtolower($bar)); // Hello world!
?>
게시판 목록
개발자팁
개발과 관련된 유용한 정보를 공유하세요.
질문은 QA에서 해주시기 바랍니다.
질문은 QA에서 해주시기 바랍니다.
| 번호 | 분류 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|---|
| 4706 | jQuery | 8년 전 | 1516 | ||
| 4705 | jQuery | 8년 전 | 2173 | ||
| 4704 | jQuery | 8년 전 | 1710 | ||
| 4703 | jQuery | 8년 전 | 2045 | ||
| 4702 | jQuery | 8년 전 | 1834 | ||
| 4701 | jQuery | 8년 전 | 2064 | ||
| 4700 | jQuery | 8년 전 | 1746 | ||
| 4699 | jQuery | 8년 전 | 1530 | ||
| 4698 | jQuery | 8년 전 | 1339 | ||
| 4697 | jQuery | 8년 전 | 1754 | ||
| 4696 | jQuery | 8년 전 | 2373 | ||
| 4695 | jQuery | 8년 전 | 1390 | ||
| 4694 | jQuery | 8년 전 | 1800 | ||
| 4693 | jQuery | 8년 전 | 1777 | ||
| 4692 | jQuery | 8년 전 | 2568 | ||
| 4691 | jQuery | 8년 전 | 2076 | ||
| 4690 | jQuery | 8년 전 | 1966 | ||
| 4689 | jQuery | 8년 전 | 1947 | ||
| 4688 | jQuery | 8년 전 | 1705 | ||
| 4687 | jQuery | 8년 전 | 1120 | ||
| 4686 | jQuery | 8년 전 | 1750 | ||
| 4685 | jQuery | 8년 전 | 2495 | ||
| 4684 | jQuery | 8년 전 | 2374 | ||
| 4683 | jQuery | 8년 전 | 1769 | ||
| 4682 | PHP | 8년 전 | 3089 | ||
| 4681 | jQuery | 8년 전 | 1611 | ||
| 4680 | jQuery | 8년 전 | 1796 | ||
| 4679 | PHP | 8년 전 | 2022 | ||
| 4678 | PHP | 8년 전 | 2154 | ||
| 4677 | PHP | 8년 전 | 2259 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기