The php ucwords() function converts the first character of each word in the string to uppercase, ucwords uppercase_PHP tutorial

PHP中文网
Release: 2016-07-12 08:53:00
Original
1826 people have browsed it

php ucwords() function converts the first character of each word in the string to uppercase, ucwords capitalizes

php ucwords() function converts the first character of each word in the string to uppercase Convert characters 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

ucwords() function converts the first character of each word in the string to uppercase.

Note: This function is binary safe.

Related functions:

lcfirst() - Convert the first character in the string to lowercase

strtolower() - Convert the string to lowercase

strtoupper() - Convert the string to uppercase

ucfirst() - Convert the first character in the string to uppercase

Syntax


ucwords(string)

Parameter Description

string Required. Specifies the string to be converted.

Technical details


Return value: Returns the converted string.

PHP Version: 4


Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template