Reference

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
$string string

String being replaced on (haystack)

$replacements array

Replacement array from Str::replacements()

Return type

string

Source code

kirby/src/Toolkit/Str.php#L640