Captilize every word in ECHO string with PHP
问题 Aps if this seems really basic, I'm not a PHP developer. OK this shows you how to captalize each word in a string Capitalise every word of a string in PHP? BUT, how do you incorporate this into multiple strings being echoed? For example I have <?php echo $prefillTitle, ' ', $prefillFirstname, ' ', $prefillLastname; ?> How would I ensure each parameter echoes with it's first letter as a capital using the ucwords(). Would it be as simple as this? <?php echo ucwords($prefillTitle, ' ',