FullNameParser::is_camel_case PHP Method

is_camel_case() protected method

Checks for camelCase words such as McDonald and MacElroy
protected is_camel_case ( string $word ) : boolean
$word string the single word you wish to test
return boolean
    protected function is_camel_case($word)
    {
        if (preg_match("/[A-Za-z]([A-Z]*[a-z][a-z]*[A-Z]|[a-z]*[A-Z][A-Z]*[a-z])[A-Za-z]*/", $word)) {
            return true;
        }
        return false;
    }