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