# array:size - XPath XQuery Reference

Returns the number of members in the supplied array.deterministiccontext-independentfocus-independentIf $array is empty the function returns zero.Otherwise, the function returns the number of members in $array.array:size(["a", "b", "c"])3array:size(["a", ["b", "c"]])2array:size([ ])0array:size([[ ]])1Note that because an array is an item, the fn:count function when applied to an array always returns 1 (one).