prepend

Prepends a string to the beginning of the input string.

Usage

$string = 'World';
$string = SM::prepend($string, 'Hello ');
// or
$string = SM::make('World')
    ->prepend('Hello ');
echo $string; // Hello World

This site uses Just the Docs, a documentation theme for Jekyll.