Click or drag to resize

first Function

Verizon Connect Logo
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
first Function

The first function returns the first element of an array, or the first point on a line.

Syntax

Alchemy
first(ident);

Nomenclature

identRequired. An array or line identifier.

Returns

Given an array first will return the first element (at the head of the array).

Given a string object first will return the first character in the string.

Given a line object first will return the first point on the line.

Example

Alchemy
$arr = array.new("T","e","l","o","g","i","s");
PRINT first($arr);

The above code snippet produces the following output:

T