Is there a PHP function that detects if a specific character in string is lower/upper case? If not, what's the best way to do this?