# elementor/3.25.3/modules/atomic-widgets/styles/transformers/array-transformer.php

Elementor Website Builder – more than just a page builder, version 3.25.3. 29 lines.

- Page: https://pluginprobe.com/plugins/elementor/3.25.3/code/modules/atomic-widgets/styles/transformers/array-transformer.php
- Raw: https://pluginprobe.com/plugins/elementor/3.25.3/raw/modules/atomic-widgets/styles/transformers/array-transformer.php
- Modified: 2024-10-28T11:08:46+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/elementor/3.25.3/code/modules/atomic-widgets/styles/transformers/array-transformer.php#L10-L20`.

```php
<?php

namespace Elementor\Modules\AtomicWidgets\Styles\Transformers;

use Elementor\Modules\AtomicWidgets\Base\Style_Transformer_Base;

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly.
}

class Array_Transformer extends Style_Transformer_Base {

	public static function type(): string {
		return 'array';
	}

	/**
	 * @param array{array: array<int, mixed>, delimiter: ?string} $value
	 * @param callable $transform
	 * @return string
	 */
	public function transform( $value, callable $transform ): string {
		$array = $value['array'];
		$delimiter = $value['delimiter'] ?? ' ';

		return implode( (string) $delimiter, array_map( $transform, $array ) );
	}
}

```
