function sqlite_myescape($data) { if(is_array($data)) return array_map("sqlite_escape_string", $data); return sqlite_escape_string($data);}$values = array("hell'o", "he'y");$values = sqlite_myescape($values); // returns array("hell''o", "hey''y")?> up down 1 ...
sqlite_escape_string()will correctly quote the string specified byitemfor use in an SQLite SQL statement. This includes doubling up single-quote characters (') and checking for binary-unsafe characters in the query string. If theitemcontains aNULcharacter, or if it begins with a character whose...
sqlite_escape_string--Escapes a string for use as a query parameter 说明stringsqlite_escape_string ( string item ) sqlite_escape_string() will correctly quote the string specified byitem for use in an SQLite SQL statement. This includes doubling up single-quote characters (' ) and checking ...
SQLite3::escapeString— Returns a string that has been properly escaped说明public static SQLite3::escapeString(string $string): stringReturns a string that has been properly escaped for safe inclusion in an SQL statement. 警告 此函数(还)不能安全地适用于二进制对象!To properly handle BLOB fields...