Page MenuHomePhorge
Diviner Arcanist Tech Docs phutil_describe_type

function phutil_describe_type($value)
Arcanist Technical Documentation ()

Return a short, human-readable description of an object's type.

This is mostly useful for raising errors like "expected x() to return a Y, but it returned a Z".

This is similar to "get_type()", but describes objects and arrays in more detail.

Parameters
wild$valueAnything.
Return
stringHuman-readable description of the value's type.