Introduction
Getting Started
Methods
Return part of the string occurring before a specific string.
Twine\Str::before( string $string ) : Twine\Str
$string = new Twine\Str('john pinkerton'); $string->before(' '); // Returns 'john'