Collection of methods to deal with variables and data types (casting, conversion, sanity check)
Located in /core/util/TypeUtils.class.php (line 37)
PHP2Go | --TypeUtils
Get the type of a given value
Returns a "default" value when a given value is FALSE
Returns a "default" value when a given value is NULL
Checks if a given value is an array
Checks if a value is boolean
Checks if a value is empty
Checks if a value is FALSE
Determines if a given value is float
If $strict is set to FALSE, a string value that is written in a valid float format, will be accepted and converted to float.
Checks if a given value is a hash array
Even having numeric keys, an array that contains gaps in the indexes sequence can be considered a hash array. Non-integer keys, obviously, also represent hash arrays.
Checks if an object is instance of a given class
The $className argument is case-sensitive. Under PHP4, it will be converted to lowercase before the comparison.
Checks if a given value is integer
If $strict is set to FALSE, a string written as a valid integer number will be accepted and converted to int.
Checks if a value is NULL
When $strict is set to FALSE, a simple value comparison is made. Otherwise, the datatype will also be considered.
Checks if a given value is an object
Checks if a given value is a resource
Returns the resource type in case of success.
Checks if a given value is a string
Checks if a value is TRUE
Converts a given value to float
Converts the given value to a positive floating point number
Converts a given value to integer
Converts a given value into a positive integer number
Converts a given value into a string
Converts a given value to array
Converts a value to boolean
Inherited From PHP2Go
PHP2Go::PHP2Go()
PHP2Go::equals()
PHP2Go::generateUniqueId()
PHP2Go::getClassName()
PHP2Go::getConfigVal()
PHP2Go::getLangVal()
PHP2Go::getObjectName()
PHP2Go::getParentName()
PHP2Go::hasDestructor()
PHP2Go::hashCode()
PHP2Go::isA()
PHP2Go::isSubclassOf()
PHP2Go::logError()
PHP2Go::raiseError()
PHP2Go::registerDestructor()
PHP2Go::registerShutdownFunc()
PHP2Go::retrieve()
PHP2Go::store()
PHP2Go::__toString()
Documentation generated on Sun, 07 Oct 2007 19:30:48 -0300 by phpDocumentor 1.3.2