Current Location: Home> Function Categories> ucwords

ucwords

Convert the first letter of each word in the string to uppercase
Name:ucwords
Category:String
Programming Language:php
One-line Description:Converts the first character of each word in the string to uppercase.

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 first character in a string to lowercase
  • strtolower() - Convert strings to lowercase
  • strtoupper() - Convert string to uppercase
  • ucfirst() - Convert the first character in a string to uppercase

grammar

 ucwords ( string )
parameter describe
string Required. Specifies the string to be converted.
Similar Functions
Popular Articles