[SOLVED] convert to caps

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
User avatar
snpo123
Forum Commoner
Posts: 77
Joined: Sat Apr 17, 2004 6:31 pm

convert to caps

Post by snpo123 »

i have a variable that I need to convert to caps, for example

$name = john;

i need a function like

$namecaps = caps($name);

the end result should set $namecaps as JOHN

is there such a function, or a way to do what i need?

thanks
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

[php_man]strtoupper[/php_man]()
User avatar
snpo123
Forum Commoner
Posts: 77
Joined: Sat Apr 17, 2004 6:31 pm

Post by snpo123 »

works great, thanks feyd
Post Reply