Function array_replace_value
Replace your array value.
$header = [ ':type_address', ':type_citizenship', ':type_city', ':type_country' ] Arr::replaceValue($header, ':type_') // Will produce: $header = [ 'address', 'citizenship', 'city', 'country' ]
Parameters summary
array |
$input |
|
string|callable |
$search |
|
string |
$replacement = '' |
Return value summary
array
|
array |