Core/Validate.php
public static function isType($input = false, $type = false) {

        if ($input && $type && Data::type($input) == $type) {

            return true;
        }

        return false;
    }
public static function isType($input = false, $type = false) {

        if ($input && $type && Data::type($input) == $type) {

            return true;
        }

        return false;
    }
public static function isType ( $ input = false , $ type = false ) { if ( $ input && $ type && Data :: type ( $ input ) == $ type ) { return true ; } return false ; }
Check if given input is of given type.
@param mixed input
@param string type
@example isType('some text', 'string') - will return true
@example isType('some text', 'object') - will return false
@return boolean
Check if given input is of given type .