PDA

View Full Version : Making the first letter caps



bunny1
03-04-2007, 09:51 PM
Is there a method in php for capitalizing the first letter of a variable?

Thanks

Inigoesdr
03-04-2007, 09:55 PM
You can capitalize the first letter of the value of a variable with ucfirst() (http://www.php.net/manual/en/function.ucfirst.php).

bunny1
03-04-2007, 09:55 PM
thank you!