English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
PHP String String Functions Manual
PHP ucfirst() Function Usage and Example
Syntax
Definition and Usage
It is used to convert the first character of the string to uppercase
Related Functions: - lcfirst()
Convert the First Character of the String to Lowercase - ucwords()
Convert the First Character of Each Word in the String to Uppercase - strtoupper()
Convert the String to Uppercase - strtolower()
Return Value
Parameter | Number |
---|---|
1 | Parameter and Description String |
Online Example3Try the following example, convert the "w
Example //Convert "w3codebox" Convert the First Character to Uppercase echo ucfirst("w3codebox()); ?>Test and See‹/›
Output Result
w3codebox