/**
 * Prepend the given values to the string.
 *
 * @param  string[] $values Values
 *
 * @return self Returns instance of The Strings class.
 */
public function prepend(string ...$values): self

Examples

$string = Strings::create('PLAY HARD.')->prepend('WORK HARD. ');

echo $string;

The above example will output:

WORK HARD. PLAY HARD.

Getting Started

Methods