Q&A > strings > What is the best way to capitalize a string? - Answer contributed by plaid
$string = uc($string);
$string =~ tr/a-z/A-Z/;
My fellow monks
Can't tell (I'm NSA/FBI/HS/...)
Others (explain your deviation)
Results (136 votes). Check out past polls.