php ucwords() function converts each word in the string to uppercase Convert the first character of a word to uppercase. This article introduces the basic usage methods and examples of the php ucwords() function to coders. Interested coders can refer to it.
Definition and usage
Theucwords() function converts the first character of each word in the string to uppercase.
Note: This function is binary safe.
Related functions:
Grammar ucwords(string)
参数 | 描述 |
---|---|
string | 必需。规定要转换的字符串。 |
Technical details
返回值: | 返回已转换的字符串。 |
PHP 版本: | 4 |
Example
Convert the first character of each word to uppercase:
The above php ucwords() function converts the first character of each word in the string to uppercase (implementation code) is all the content shared by the editor with you. I hope it can give you a reference, and I hope you will learn more Support Bangke Home.