Str::replacements()
Generates a replacement array out of dynamic input data Used for Str::replace()
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