Array Functions

@isarray

Check a variable to see if it holds an array. Gives 1 if the variable is array, or 0 if the variable holds a different type or is not defined.

@if (@isarray(x)) {
	x is an array
}

@size

Get the size of an array. Given a scalar, @size will return 0 if the scalar is an empty string (i.e. ""). Given a hash, @size will return the number of keys and values in the hash. So, a hash with 2 keys will have a size of 4.

When given multiple parameters, @size will return the sum of the sizes of all parameters.

@size is not recursive. The sum returned by @size will not include the sizes of sub-arrays or hashes.