Go to: Synopsis. Return value. Related. MEL examples.
 size 
array|string
      
size is NOT undoable, NOT queryable, and NOT editable.
This command returns the number of elements in an array or the number of characters in a string. Note that for strings containing multibyte characters, size returns the number of individual characters in the string, which will not be the same as the number of bytes.| int | 
int $myInts[]={1,2,3,4,5,6};
$numInts=size($myInts);
// Result: 6 //
string $myString = "a string";
$strSize=size($myString);
// Result: 8 //
// Also, please see the examples for the <b>clear</b> command.