# array.push()

Inserts an array element at the end of an array and return the new size of the array.

**Introduced:** 5.3.8.104

```
array.push( value=any )
```

**Returns:** numeric

# Arguments

| Argument | Type | Required | Description | Default |
|----------|------|----------|-------------|---------|
| value | any | Yes | value to prepend |  |

# Examples

```1
	numbers = [ 1, 2, 3, 4 ];
	Dump( numbers.Push( 0 ) ); // Outputs 5

	moreNumbers = [ 5, 6, 7, 8 ];
	Dump( moreNumbers.Push( 4 ) ); // Outputs 5
```

# Categories

[Arrays](../../../categories/array.md)

# See Also

[ArrayPush()](../../functions/arraypush.md), [Array](../array.md)