I'd like to show the players user name with a capital during combat description. I'm sure there's some PHP code that can grab the first letter, make an upper case version of it, then I'll take the first letter and the rest of the string and put it into a new string. Sorry for the simple question!
Edit: Actually this should probably go in coding - I'm never sure of the right category to put it in.
simplistic question: changing a character to caps?
simplistic question: changing a character to caps?
Fight Cycle : My latest Browser game WIP
Driftwurld : My Browser Game WIP
Philosopher Gamer : My Blog
Driftwurld : My Browser Game WIP
Philosopher Gamer : My Blog
Re: simplistic question: changing a character to caps?
This is what you might be looking for.
- Jackolantern
- Posts: 10891
- Joined: Wed Jul 01, 2009 11:00 pm
Re: simplistic question: changing a character to caps?
Yep, that is the best way to do it there. Luckily PHP includes a single function to do just that, so no need to worry about the other steps.
The indelible lord of tl;dr
Re: simplistic question: changing a character to caps?
So your saying I should uc it!? 
Thanks Jony! Kind of handy it had a function that did exactly what I needed!

Thanks Jony! Kind of handy it had a function that did exactly what I needed!
Fight Cycle : My latest Browser game WIP
Driftwurld : My Browser Game WIP
Philosopher Gamer : My Blog
Driftwurld : My Browser Game WIP
Philosopher Gamer : My Blog