is variable's first letter is lower-case TURN TO cap

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Patriot
Forum Commoner
Posts: 34
Joined: Tue Jun 18, 2002 1:36 pm

is variable's first letter is lower-case TURN TO cap

Post by Patriot »

is there a way to always have the first letter of a variable be a cap?
it looks better when you display their username.
User avatar
EvilWalrus
Site Admin
Posts: 209
Joined: Thu Apr 18, 2002 3:21 pm
Location: Springmont, PA USA

Post by EvilWalrus »

check out the ucfirst() function...
Post Reply