Hi guys. After getting a lot of insight for my last post, I've decided to post another problem I've been having.
I'm attempting to create a function that will transform lowercase words into Words With The First Letter Capitalized, but I'm doing something wrong as I keep getting error messages.
Here's my code:
<?php
function converter($upper, $string){
$upper = ucwords($string);
$string = "some words.<br />";
}
print converter("some words.", $string );
?>
The only catch here is that I have to display everything with the
print converter("some words.", $string );
function. I'm not exactly sure how to deal with arguments expertly so I'm thinking I have issues there. Help? And thanks again.