Reference

Str::replacements()

Generates a replacement array out of dynamic input data Used for Str::replace()

Str::replacements(string|array $search, string|array $replace, int|array $limit): array

Parameters

Name Type Default Description
$search string|array

Value being searched for (needle)

$replace string|array

Value to replace matches with

$limit int|array

Maximum possible replacements for each search value;
multiple limits for each search value are supported;
defaults to no limit

Return type

array

Source code

kirby/src/Toolkit/Str.php#L593