PHPDaemon\Clients\MySQL\Pool::escape PHP Method

escape() public static method

Escapes the special symbols with trailing backslash
public static escape ( string $string ) : string
$string string
return string
    public static function escape($string)
    {
        static $sqlescape = ["" => '\\0', "\n" => '\\n', "\r" => '\\r', '\\' => '\\\\', '\'' => '\\\'', '"' => '\\"'];
        return strtr($string, $sqlescape);
    }