Problem: a parameter can contain different strings, or a number (integer). And a number needs special handling.
Maybe there should be a function
vartype(input)
, that returns codes like:'empty', 'string', 'integer', 'float'?
Other ideas? 'undefined'/'unset' [see isset()]?) If an undefined var is spcified, it's none of above.
OK: maybe 'array'? The array *iis* kind of type - only it's elements have a data-type like 'string'.
better: 'array-i[ndexed]' and 'array-a[ssociative]' ?
Come on - didn't have a wish for a long time