Page 1 of 1

convert to caps

Posted: Mon Jun 14, 2004 12:22 am
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

Posted: Mon Jun 14, 2004 12:27 am
by feyd
[php_man]strtoupper[/php_man]()

Posted: Mon Jun 14, 2004 12:34 am
by snpo123
works great, thanks feyd