function phutil_describe_type($value)libphutil Technical Documentation (Core Utilities)
function phutil_describe_type($value)
libphutil Technical Documentation (Core Utilities)
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 | $value | Anything. |
Return
string | Human-readable description of the value's type. |
- Defined
- src/utils/utils.php:1842