length

Description

Returns the length of a list or strings.

 integer length( mixed input )

When passed a list, returns the number of items in that list.
When passed an object, returns the number of keys in the object.
When passed a string, returns the number of characters.
When passed anything else, converts to a string and returns the number of characters.

Example

 {length('string')} = 6 {length([1,2,3])} = 3
Top