MysqliDb::_determineType PHP Method

_determineType() protected method

This function takes the input, determines what type it is, and then updates the param_type.
protected _determineType ( mixed $item ) : string
$item mixed Input to determine the type.
return string The joined parameter types.
    protected function _determineType($item)
    {
        switch (gettype($item)) {
            case 'NULL':
            case 'string':
                return 's';
                break;
            case 'boolean':
            case 'integer':
                return 'i';
                break;
            case 'blob':
                return 'b';
                break;
            case 'double':
                return 'd';
                break;
        }
        return '';
    }