Str::replacements()
Generates a replacement array out of dynamic input data Used for Str::replace()
Parameters
Name | Type | Default | Description |
---|---|---|---|
$search * | array |string |
– | Value being searched for (needle) |
$replace * | array |string |
– | Value to replace matches with |
$limit * | array |int |
– | Maximum possible replacements for each search value; multiple limits for each search value are supported; defaults to no limit |
Return type
array