Determine if the string starts with another string.
Twine\Str::startsWith( string $string ) : bool
$string | The string to compare against |
$string = new Twine\Str('john pinkerton');
$string->startsWith('john'); // Returns true
$string->startsWith('pinkerton'); // Returns false