Method sizeof()
- Method
sizeof
int(0..)sizeof(stringarg)
int(0..)sizeof(arrayarg)
int(0..)sizeof(mappingarg)
int(0..)sizeof(multisetarg)
int(0..)sizeof(objectarg)- Description
Size query.
- Returns
The result will be as follows:
argcan have any of the following types:stringThe number of characters in
argwill be returned.array|multisetThe number of elements in
argwill be returned.mappingThe number of key-value pairs in
argwill be returned.objectIf
argimplements lfun::_sizeof(), that function will be called. Otherwise the number of non-protected (ie public) symbols inargwill be returned.- See also