first Function |
The first function returns the first element of an array, or the first point on a line.
first(ident);
ident | Required. An array or line identifier. |
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.
$arr = array.new("T","e","l","o","g","i","s"); PRINT first($arr);
The above code snippet produces the following output:
T |