Start SQL string in uppercase

Solved
Hello,

I have a string of characters, composed of one or more words.
I would like the first letter of each word to be in uppercase, and the rest of each word in lowercase.
I know if there is only one word, but several ......

Thank you.

2 answers

  1. Thank you opda.
    Here is what I did
    $prenom = strtolower($prenom); $prenom = explode(" ", $prenom); $prenom0 = UcFirst($prenom[0]); $prenom1 = UcFirst($prenom[1]); $prenom2 = UcFirst($prenom[2]); $prenom3 = UcFirst($prenom[3]); $prenom = $prenom0 $prenom1 $prenom2 $prenom3; 

    Of course, I limit the first name to 4 names .......
    And on the last line, I have the message: Parse error: syntax error, unexpected T_VARIABLE .
    I can't figure out where that comes from ...... ???
    0