/**
 * Convert a string to snake case.
 *
 * @param  string $delimiter Delimeter
 *
 * @return self Returns instance of The Strings class.
 */
public function snake(string $delimiter = '_'): self

Examples

$string = Strings::create('fooBar')->snake();

echo $string;

The above example will output:

foo_bar

Getting Started

Methods