/** * Real escape, using mysql_real_escape_string() or addslashes() * * @see addslashes() * @since 0.1 * @access private * * @param string $string to escape * @return string escaped */ public function _real_escape($string) { if ($this->real_escape) { return $this->mysqli->real_escape_string($string); } else { return addslashes($string); } }