|   |   | 
| $length Returns the length of a variable | 
| Usage | 
| <integer> $length(<value:variant>) | 
| Description | 
| When <value> is an array or a hash, it returns the number of its elements. When <value> is an object reference it returns 0. In all the other cases <value> is interpreted as a string and its length is returned. | 
| See also | 
| $str.len |