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

# array:shift — Shift off array

ARRAY:SHIFT shifts an item off the beginning of an array and returns its value.

### Attributes
| Name | Type | Default | Description |
| ---- | ---- | ------- | ----------- |
| var | var |  | Variable name |
| var_result | var |  | Result variable name |

### Children
- (none)

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

### Result
- binding: var; type: array; predicate: no-result-propagation
- binding: var_result; type: n/a

### Examples

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

<output>
	<array:shift var="names"/>
</output>

<!-- Bill Gates -->
```
