JBZoo\Data\PHPArray::_quoteWrap PHP Method

_quoteWrap() protected method

protected _quoteWrap ( $var ) : string
$var
return string
    protected function _quoteWrap($var)
    {
        $type = strtolower(gettype($var));
        switch ($type) {
            case 'string':
                return "'" . str_replace("'", "\\'", $var) . "'";
            case 'null':
                return 'null';
            case 'boolean':
                return $var ? 'true' : 'false';
                //TODO: handle other variable types.. ( objects? )
            //TODO: handle other variable types.. ( objects? )
            case 'integer':
            case 'double':
        }
        return $var;
    }