For
strings it is the number of characters, for an
array it's the number of elements and for a
table it's the number of keys. All other types return
0.
sizeof() is not utf-8 aware, so when querying a
string it will return the number of bytes in the string, which isn't always the number of characters.