PHPDaemon\Clients\MySQL\Pool::escape PHP Метод

escape() публичный статический Метод

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