# array.first()

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

```
array.first( )
```

**Returns:** any

*This function does not take any arguments.*

# Examples

```cfml
	myarray = ["one","two","three","TWO","five","Two"];
	res = myarray.first();
	writedump(res);
	myarray = [{"one":1},"two","three","TWO","five","Two"];
	res = myarray.first();
	writedump(res);
```

# Categories

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

# See Also

[ArrayFirst()](../../functions/arrayfirst.md), [Array](../array.md)