Return a formatted string.
Twine\Str::format( mixed ...$args ) : Twine\Str
...$args | Any number of elements to fill the string |
$string = new Twine\Str('Hello %s! Welcome to %s, population %b.');
$string->format('John', 'Pinkertown', 1337); // Returns 'Hello John! Welcome to Pinkertown, population 10100111001.'