Type Checks
Introduction
These functions and classes provide a way to check for common data types.
Click on the function or class below for more details.
Function | Purpose |
---|---|
is_array_list() |
can every item in the list be used as a PHP array? |
is_list() |
can we use the variable in a foreach() loop? |
is_listy_object() |
can we use the variable in a foreach() loop? |
is_stringy() |
can we use the variable as a string? |
IsArray::check() |
can we use the variable with PHP's array_xxx functions? |
IsArray::checkList() |
can we use every entry in the list with PHP's array_xxx functions? |
IsAssignable::check() |
can we use the variable with PHP's object notation? |
IsAssignable::checkList() |
can we use every entry in the list with PHP's object notation? |
IsList::check() |
can we use the variable in a foreach() loop? |
IsList::checkList() |
can we use every entry in the list in a foreach() loop? |
IsListyObject::check() |
can we use the variable in a foreach() loop? |
IsListyObject::checkList() |
can we use every entry in the list in a foreach() loop? |
IsStringy::check() |
can we use the variable as a string? |
IsStringy::checkList() |
can we use every entry in the list as a string? |