type
Description
Returns a string description of what data type a variable is.
string type( mixed var )
Returns a string description of what data type a variable is. Possible return values are (accepted data types):
array
boolean
floating integer
integer
lambda
null
object
string
Examples
{type(["a"])} list<br />
{type(true)} boolean
{type(12.12)} float<br />
{type(12)} integer<br />
{x= lambda x: x}
{type(x)} lambda<br />
{type(null)} null<br />
{type({"foo":"bar"})} object<br />
{type("")} string<br />
{type("hello")} string<br />