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; |
Return type
array