This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
en:length [2016/08/12 12:51] admin |
en:length [2020/04/26 22:35] admin |
||
---|---|---|---|
Line 1: | Line 1: | ||
===== Length (Function) ===== | ===== Length (Function) ===== | ||
==== Format ==== | ==== Format ==== | ||
- | length( [[stringexpressions|string_expression]]// | + | **length**( [[stringexpressions|string_expression]] |
+ | **length**( [[array|array]] )// | ||
+ | **length**( [[map|map]] | ||
returns [[integerexpressions|integer_expression]] | returns [[integerexpressions|integer_expression]] | ||
==== Description ==== | ==== Description ==== | ||
- | Returns the number of characters in [[stringexpressions|string_expression]]// | + | Returns the number of characters in [[stringexpressions|string_expression]], the number of elements in a map, or the number of values in an array. |
+ | |||
+ | NOTE: The length function returns the total number of items in a two dimensional array (rows * columns). | ||
==== See Also ==== | ==== See Also ==== | ||
{{page> | {{page> |