public function title($string)
    {
        $string = explode(' ', $string);
        foreach ($string as $key => $value) {
            if (!empty($value) && mb_strtoupper($value) == $value) {
                $string[$key] = mb_strtolower($value);
            }
        }

        return TextFormatter::titleCase(implode(' ', $string));
    }
public function title($string)
    {
        $string = explode(' ', $string);
        foreach ($string as $key => $value) {
            if (!empty($value) && mb_strtoupper($value) == $value) {
                $string[$key] = mb_strtolower($value);
            }
        }

        return TextFormatter::titleCase(implode(' ', $string));
    }
public function title ( $ string ) { $ string = explode ( ' ' , $ string ) ; foreach ( $ string as $ key => $ value ) { if ( ! empty ( $ value ) && mb_strtoupper ( $ value ) == $ value ) { $ string [ $ key ] = mb_strtolower ( $ value ) ; } } return TextFormatter :: titleCase ( implode ( ' ' , $ string ) ) ; }
Properly formats a title string.

@param string $string

@return string
Properly formats a title string .