Stringy
Stringy copied to clipboard
Add replace() method
It would be nice to have a generic replace() method:
$s = $s->replace('foo', 'bar');
Expected signature:
function replace(string $search, string $replace, int $limit = -1);