PHP implements the method of capitalizing the first letter of the string and the first letter of the word, with the string uppercase
The example in this article describes how PHP implements the initial capitalization of a string and the capitalization of the first letter of the word. Share to everyone for your reference. The specific analysis is as follows:
Ucfirst can size the first letter of the string, Ucwords can capitalize the first letter of each word in the string output
<?phpprint ucfirst ("Hello World");p rint ucwords ("Iam King of the Jungle"); >
I hope this article is helpful to everyone's PHP programming.
http://www.bkjia.com/PHPjc/967734.html www.bkjia.com true http://www.bkjia.com/PHPjc/967734.html techarticle PHP Implementation of string capitalization and the first letter of the word capitalization method, the string capitalization This article describes the PHP implementation of string capitalization and the first letter of the word method. Share to ...