How Do I Contact the Legal Dept?

I have fname and lname in my database, and a name could be stored as JOHN DOE or john DOE or JoHN dOE, but ultimately I want to display it as John Doe

fname being John and lname being Doe

2 ANSWERS

16 febrero, 2017 a las 10:25 am admin

seeing it is tagged PHP:
either

string ucfirst  ( string $str  );

to uppercase first letter of the first word

or

string ucwords  ( string $str  );

to uppercase the first letter of every word

you might want to use those in combination with

string strtolower  ( string $str  );

to normalize all names to lower case first.

7 febrero, 2019 a las 3:20 pm admin

Perfecto. Creo que con esto queda resuelto.

Viendo 2 respuestas - de la 1 a la 2 (de un total de 2)

You must be logged in to reply to this topic.