src/Str.php
public function camelize(): self
    {
        return $this
            ->pregSplit('/_| /')
            ->map(function(self $part) {
                return $part->ucfirst();
            })
            ->join('')
            ->toEncoding((string) $this->encoding());
    }
public function camelize(): self
    {
        return $this
            ->pregSplit('/_| /')
            ->map(function(self $part) {
                return $part->ucfirst();
            })
            ->join('')
            ->toEncoding((string) $this->encoding());
    }
public function camelize ( ) : self { return $ this -> pregSplit ( '/_| /' ) -> map ( function ( self $ part ) { return $ part -> ucfirst ( ) ; } ) -> join ( '' ) -> toEncoding ( ( string ) $ this -> encoding ( ) ) ; }
Return a CamelCase representation of the string

@return self
Return a CamelCase representation of the string