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

Examples

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

echo $string;

The above example will output:

FooBar

Getting Started

Methods