Hash Functions

@ishash

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

@if (@ishash(x)) {
	x is a hash
}

@keys

Populate the specified array (parameter 1) with the keys from the specified hash (parameter 2).

@keys(keylist, myhash)\
@foreach key (keylist) {
	${key} = ${myhash.${key}}
}