The PHP ucwords () function converts the first character of each word in a string to uppercase (implementation code), Ucwords uppercase
The PHP ucwords () function converts the first character of each word in a string to uppercase, and this article
The phpucwords () function converts the first character of each word in a string to uppercase (implementation code) and ucwords to uppercase. The phpucwords () function converts the first character of each word in a string to uppercase
The PHP ucwords () function converts the first character of each word in a string to uppercase, Ucwords uppercase
The PHP ucwords () function converts the first character of each word in a string to uppercase, and this article introduces the
The php ucwords () function converts the first character of each word in a string to uppercase and the ucwords to uppercase.
The php ucwords () function converts the first character of each word in a string to uppercase. This article introduces the
The phpucwords () function converts the first character of each word in a string to uppercase and ucwords to uppercase. The phpucwords () function converts the first character of each word in a string to uppercase, and the ucwords capital phpucwords
The PHP ucwords () function converts the first character of each word in the string to uppercase, and this article introduces the basic use method and example of PHP ucwords () function to the code agriculture, which is interested in the code
Instance
Convert the first character of each word to uppercase:
Definition and usage
The Ucwords () function converts the first character of each word in a string to uppercase.
Note: This function is binary safe.
Related functions:
Ucfirst ()-
The following summarizes several character functions in PHP, Summary: 1) Ucfirst the first letter into uppercase, such as $string = "This is my web development blog"; echo Ucfirst ($string); Output:this is my web Development blog 2) Lcfirst, the
/* Chinese processing tool functions
---space---
String Gbspace (String)---------spaces between each text
String Gbunspace (String)-------white space between each text
String Clear_space (String)-------used to clear extra
Php string conversion case. In php, if we want to convert characters into uppercase and lowercase letters, use strtolower or strtoupper directly, however, to convert the first letter to the upper and lower case, we need to use the ucwords function
In PHP if we want to convert the characters to uppercase and lowercase, we can use Strtolower or strtoupper, but we need to use the ucwords correlation function to convert the case to the first letter.
First Letter capitalized: Ucwords ()
The following small series will bring you a phpucwords () function to convert the first character of each word in the string to uppercase (implementation code ). I think it is quite good. now I will share it with you and give you a reference. Let's
PHP uppercase/Lowercase conversion function summary. The code for copying the first letter of each word into uppercase: ucwords () is as follows :? Php $ foohelloworld !; $ Fooucwords ($ foo); HelloWorld! $ BarHELLOWORLD !; $ Barucwor the initial
The following small series will bring you a phpucwords () function to convert the first character of each word in the string to uppercase (implementation code ). I think it is quite good. now I will share it with you and give you a reference. Let's
Php converts the initial character of a string to uppercase. Php: how to convert the character string to uppercase/Lowercase. This article describes how to convert the character string to uppercase/lowercase in php, tips for using ucfirst and
In php, the uppercase/Lowercase conversion functions include: strtolower, strtoupper, ucfirst, ucwords, and so on, this article will introduce how to use these uppercase/Lowercase conversion functions.
1. convert string to lowercase
Strtolower ():
Ucwords ();
Strtoupper ();
Ucfirst ()
Strtolower ();
PHP ucwords () functionPHP String functionInstanceConvert the first character of each word to uppercase:Running an instanceDefinition and usageThe Ucwords () function converts the
Example 1, the first letter of each word is converted to uppercase: Ucwords ()
$foo = ' Hello world! ';
$foo = Ucwords ($foo); Hello world!
$bar = ' HELLO world! ';
$bar = Ucwords ($bar); HELLO
The first letter of each word is converted to uppercase: Ucwords ()The code is as follows: $foo = ' Hello world! ';$foo = Ucwords ($foo); Hello world!$bar = ' HELLO world! ';$bar = Ucwords ($bar); HELLO world!$bar = Ucwords (Strtolower ($bar));
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.