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);
    }