Moves (copies) a property's value to another property, within an array of arrays.


Syntax

array_property_move(?array $array, $srcPath, $trgPath, $keepSrc = false): ?array


Parameter

@param array|null $array A multi-dimensional numeric or associative array.

@param array|string $srcPath The path of property to query.

As array, e.g.:   [ 'a', 'b' ]

As string, e.g.:   'a.b'

@param array|string $trgPath The path of property to set within the array/object

ATTENTION:  ** This supports only a path-depth, up to level 10 ! **

As array, e.g.:   [ 'a', 'b' ]

As string, e.g.:   'a.b'

@param bool $keepSrc If TRUE the source-property will not be unset'ed after copying.


Return

Returns the modified new array.


Example

Writing in your twig source code:

... coming soon :)