public function quote($values, $quotes = true) {
		if (is_array($values)) {
			foreach ($values as $key => $value) {
				$values[$key] = $this->quote($value, $quotes);
			}
		} else if ($values === null) {
			$values = 'NULL';
		} else if (is_bool($values)) {
			$values = $values ? 1 : 0;
		} else if (!is_numeric($values)) {
			$values = $this->escape($values);
			if ($quotes) {
				$values = '"' . $values . '"';
			}
		}

		return $values;
	}
public function quote($values, $quotes = true) {
		if (is_array($values)) {
			foreach ($values as $key => $value) {
				$values[$key] = $this->quote($value, $quotes);
			}
		} else if ($values === null) {
			$values = 'NULL';
		} else if (is_bool($values)) {
			$values = $values ? 1 : 0;
		} else if (!is_numeric($values)) {
			$values = $this->escape($values);
			if ($quotes) {
				$values = '"' . $values . '"';
			}
		}

		return $values;
	}
public function quote ( $ values , $ quotes = true ) { if ( is_array ( $ values ) ) { foreach ( $ values as $ key => $ value ) { $ values [ $ key ] = $ this -> quote ( $ value , $ quotes ) ; } } else if ( $ values === null ) { $ values = 'NULL' ; } else if ( is_bool ( $ values ) ) { $ values = $ values ? 1 : 0 ; } else if ( ! is_numeric ( $ values ) ) { $ values = $ this -> escape ( $ values ) ; if ( $ quotes ) { $ values = '"' . $ values . '"' ; } } return $ values ; }
Quote a variable so it can be used in a query

@access public
@param string $value The variable to quote
@return array $quoted_values The quoted result
Quote a variable so it can be used in a query