---
title: "array:concat — Concatenate array"
description: "iXML command array:concat: Concatenate array."
canonical_url: "https://www.zeyos.com/ixml/ref/array-concat"
markdown_url: "https://www.zeyos.com/ai/guide/ixml/ref/array-concat.md"
section: "ixml-reference"
authority: "reference"
language: "en"
source_repository: "https://cloud.zeyos.com/__doc/ixmldoc.xml"
source_sha256: "a23f04e6a98628ca3c273c3b8dd2c33c034cfda3e0f00478d8793074fd2f70dd"
---

# array:concat — Concatenate array

ARRAY:CONCAT concatenates the items of the tail array to an array.

ARRAY:CONCAT will implicitly generate a consecutive numeric key for each item of the tail array.

### Attributes
| Name | Type | Default | Description |
| ---- | ---- | ------- | ----------- |
| var | var |  | Variable name |
| var_result | var | (destructive on 'var') | Result variable name |
| var_tail | var |  | Tail variable name |

### Children
- (none)

### Parents
- (not restricted in the reference)

### Result
- binding: var|var_result; type: array; predicate: no-result-propagation

### Examples

```xml
<array var="names">
	<item>Bill Gates</item>
</array>

<array var="addition">
	<item>Steve Jobs</item>
</array>

<array:concat var="names" var_tail="addition"/>
<output>$names[0] and $names[1] are competitors!</output>

<!-- Bill Gates and Steve Jobs are competitors! -->
```
