/**
 * Begin a string with a single instance of a given value.
 *
 * @param  string $prefix Prefix
 *
 * @return self Returns instance of The Strings class.
 */
public function start(string $prefix): self

Examples

$string = Strings::create('movies/sg-1/season-5/episode-21/')->start('/');

echo $string;

The above example will output:

/movies/sg-1/season-5/episode-21/

Getting Started

Methods