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
seeing it is tagged PHP:
string ucfirst ( string $str );
to uppercase first letter of the first word
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.
You must be logged in to reply to this topic.
It appears that you are not logged in. In order to create a new support ticket you need to make sure to register and / or sign in. Please make sure to follow the link below to sign in, and then continue to the submit ticket button.