选择语言 :

 Module_Database_Driver::escape

Sanitize a string by escaping characters that could cause an SQL injection attack.

$value = $db->escape('any string');

string Module_Database_Driver::escape( string $value )

参数列表

参数 类型 描述 默认值
$value string Value to quote
返回值
  • string
File: ./modules/database/driver.class.php
abstract public function escape($value);