public static function wordsFromUnderscore($strName)
    {
        $strToReturn = trim(str_replace('_', ' ', $strName));
        if (strtolower($strToReturn) == $strToReturn) {
            return ucwords($strToReturn);
        }
        return $strToReturn;
    }
public static function wordsFromUnderscore($strName)
    {
        $strToReturn = trim(str_replace('_', ' ', $strName));
        if (strtolower($strToReturn) == $strToReturn) {
            return ucwords($strToReturn);
        }
        return $strToReturn;
    }
public static function wordsFromUnderscore ( $ strName ) { $ strToReturn = trim ( str_replace ( '_' , ' ' , $ strName ) ) ; if ( strtolower ( $ strToReturn ) == $ strToReturn ) { return ucwords ( $ strToReturn ) ; } return $ strToReturn ; }
Replaces underscores with spaces and makes the first character of each word uppercase

@param string $strName String which has to be converted into single words

@return string The resulting string (as words)
@was QConvertNotation::WordsFromUnderscore
Replaces underscores with spaces and makes the first character of each word uppercase