Join array elements with a string
This transformer uses the php internal function: https://www.php.net/manual/en/function.implode.php
- Service:
CleverAge\ProcessBundle\Transformer\String\ImplodeTransformer - Transformer code:
implode
array
string
| Code | Type | Required | Default | Description |
|---|---|---|---|---|
separator |
string |
X | ` | ` |
# Transformer mapping level
sprintf_multiple:
code:
- '[firstname]'
- '[lastname]'
transformers:
implode:
separator: '-'