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

8 ANSWERS

February 16, 2017 at 10:25 am Andy M.

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.

May 31, 2017 at 12:23 pm David Jackson

Test Reply

May 31, 2017 at 12:44 pm David Jackson

Test Reply

May 31, 2017 at 12:51 pm David Jackson

Test Reply

May 31, 2017 at 12:59 pm David Jackson

Test Reply

May 31, 2017 at 12:59 pm David Jackson

Test Reply

June 20, 2017 at 12:07 pm cmbxl

ok, j’ai compris

July 1, 2017 at 9:28 pm Anonymous
Viewing 8 replies - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.