Quotes a string for use in a query.
string $string: The string to be quoted.
int $parameter_type: (optional) Provides a data type hint for drivers that have alternate quoting styles. Defaults to \PDO::PARAM_STR.
string|bool A quoted string that is theoretically safe to pass into an SQL statement. Returns FALSE if the driver does not support quoting in this way.
\PDO::quote()
public function quote($string, $parameter_type = \PDO::PARAM_STR) {
return $this->connection
->quote($string, $parameter_type);
}