Use ucwords() to Capitalize the First Letter of Each Word

Use ucwords() to Capitalize the First Letter of Each Word

The ucwords() function capitalizes the first letter of each word in a string. This is useful for formatting titles and names.

← Back to Tips List