What\'s the best way to see if a string contains all capital letters? I still want the function to return true if the string also contains symbols or numbers.
PCRE solution:
$all_uppercase = preg_match('#^[A-Z]+$#', $string);
just make sure you don't use 'i' modifier