src/StringUtils.php
public static function title($value, $encoding = null)
    {
        $options  = [];
        $encoding = $encoding ?: static::$encoding;

        if ($encoding) {
            $options['encoding'] = $encoding;
        }

        return StaticFilter::execute(
            static::camelCaseToUnderscore($value), Filter\UpperCaseWords::class, $options
        );
    }
public static function title($value, $encoding = null)
    {
        $options  = [];
        $encoding = $encoding ?: static::$encoding;

        if ($encoding) {
            $options['encoding'] = $encoding;
        }

        return StaticFilter::execute(
            static::camelCaseToUnderscore($value), Filter\UpperCaseWords::class, $options
        );
    }
public static function title ( $ value , $ encoding = null ) { $ options = [ ] ; $ encoding = $ encoding ? : static :: $ encoding ; if ( $ encoding ) { $ options [ 'encoding' ] = $ encoding ; } return StaticFilter :: execute ( static :: camelCaseToUnderscore ( $ value ) , Filter \ UpperCaseWords :: class , $ options ) ; }
Convert the given string to title case.

@param string $value
@param string $encoding

@return string
@throws \Zend\Filter\Exception\ExceptionInterface
Convert the given string to title case .