# ArrayFirst()

Returns the first item from an array. Throws an error if the array is empty.

```
ArrayFirst( array=array );
```

**Returns:** any

# Arguments

| Argument | Type | Required | Description | Default |
|----------|------|----------|-------------|---------|
| array | array | Yes | The array to obtain the first Item from |  |

# Examples

```cfml
aNames = array("Marcus","Sarah","Josefine");
dump( var=aNames, label="aNames - original array" );
dump(var=arrayFirst(aNames),label="first element of array aNames");
```







# Categories

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

# See Also

[array.first()](../objects/array/first.md)