src/Manipulator.php
public function toCamelCase() : Manipulator
    {
        $modifiedString = '';

        foreach (explode(' ', $this->string) as $word) {
            $modifiedString .= self::make($word)->toLower()->capitalize()->toString();
        }

        $final = self::make($modifiedString)
            ->replace(' ', '')
            ->lowercaseFirst()
            ->toString();

        return new static($final);
    }
public function toCamelCase() : Manipulator
    {
        $modifiedString = '';

        foreach (explode(' ', $this->string) as $word) {
            $modifiedString .= self::make($word)->toLower()->capitalize()->toString();
        }

        $final = self::make($modifiedString)
            ->replace(' ', '')
            ->lowercaseFirst()
            ->toString();

        return new static($final);
    }
public function toCamelCase ( ) : Manipulator { $ modifiedString = '' ; foreach ( explode ( ' ' , $ this -> string ) as $ word ) { $ modifiedString .= self :: make ( $ word ) -> toLower ( ) -> capitalize ( ) -> toString ( ) ; } $ final = self :: make ( $ modifiedString ) -> replace ( ' ' , '' ) -> lowercaseFirst ( ) -> toString ( ) ; return new static ( $ final ) ; }
Convert a string to camel-case.

@return object|Manipulator
Convert a string to camel - case .