public function getPDOConstantType($value)
    {

        switch (true) {
            case is_int($value):
                $type = PDO::PARAM_INT;
                break;
            case is_bool($value):
                $type = PDO::PARAM_BOOL;
                break;
            case (null === $value):
                $type = PDO::PARAM_NULL;
                break;
            default:
                $type = PDO::PARAM_STR;
        }
        return $type;
    }
public function getPDOConstantType($value)
    {

        switch (true) {
            case is_int($value):
                $type = PDO::PARAM_INT;
                break;
            case is_bool($value):
                $type = PDO::PARAM_BOOL;
                break;
            case (null === $value):
                $type = PDO::PARAM_NULL;
                break;
            default:
                $type = PDO::PARAM_STR;
        }
        return $type;
    }
public function getPDOConstantType ( $ value ) { switch ( true ) { case is_int ( $ value ) : $ type = PDO :: PARAM_INT ; break ; case is_bool ( $ value ) : $ type = PDO :: PARAM_BOOL ; break ; case ( null === $ value ) : $ type = PDO :: PARAM_NULL ; break ; default : $ type = PDO :: PARAM_STR ; } return $ type ; }
Checks the data type of the value that is passed
@access public
@param * $value
@return Integer Returns the corresponding PDO ID of the data type.
Checks the data type of the value that is passed