ucwords
Intervention/image
Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Uppercase the first character of each word in a string
<?php ucwords
(
string $string
,
string $separators
=
" \t\r\n\f\v"
):
string