/**
 * Convert a string to camel case.
 *
 * @return self Returns instance of The Strings class.
 */
public function camel(): self

Examples

$string = Strings::create('foo_bar')->camel();

echo $string;

The above example will output:

fooBar

Getting Started

Methods