Str::replaceReplacements()
Takes a replacement array and processes the replacements Used for Str::replace()
Str::replaceReplacements(string $string, array $replacements): string
Parameters
Name | Type | Default | Description |
---|---|---|---|
$stringrequired | string |
no default value | String being replaced on (haystack) |
$replacementsrequired | array |
no default value | Replacement array from Str::replacements() |
Return type
string
String with replaced values