Home >> PHP >> ucwords() function in PHP

ucwords() function in PHP

The ucwords() function used for uppercase the first character of each word in a string.

Syntax

ucwords(string)

Example

echo ucwords('hello dear');

Output

Hello Dear

Post Your Comment

Next Questions
wordwrap() function
array
Array type
Numeric array
Associate array
Multidimensional array
array() function
array_change_key_case() function
array_chunk() function
array_combine() function
array_count_values() function
array_diff() function
array_diff_assoc() function
array_diff_key() function
array_diff_uassoc() function
array_diff_ukey() function
array_fill() function
array_filter() function
array_flip() function
array_intersect() function
array_intersect_assoc() function
array_intersect_key() function
array_intersect_uassoc() function
array_intersect_ukey() function
array_key_exits() function

Copyright ©2022 coderraj.com. All Rights Reserved.