SQLite3::escapeString

(PHP 5 >= 5.3.0, PHP 7)

SQLite3::escapeStringReturns a string that has been properly escaped

说明

public static SQLite3::escapeString ( string $value ) : string

Returns a string that has been properly escaped for safe inclusion in an SQL statement.

Warning

此函数(还)不能安全地适用于二进制对象!

To properly handle BLOB fields which may contain NUL characters, use SQLite3Stmt::bindParam() instead.

参数

value

The string to be escaped.

返回值

Returns a properly escaped string that may be used safely in an SQL statement.

注释

Warning

addslashes() should NOT be used to quote your strings for SQLite queries; it will lead to strange results when retrieving your data.

相关文章
php deque returns a representation that can be converted to jsonphp imap 函数 returns all imap alert messages that have occurredphp imap 函数 returns the list of mailboxes that matches the given textphp sqlite 函数 returns the number of rows that were changed by the most recent sql statementphp sqlite 函数 opens an sqlite database and returns an sqlitedatabase objectphp sqlite 函数 returns the number of fields in a result setphp imagick returns a string containing the imagemagick licensephp mongocommandcursor checks if there are results that have not yet been sent from the databasephp mongodb bson dbpointer returns an empty stringphp mongodb bson javascript returns a representation that can be converted to jsonphp mongodb bson objectid returns a representation that can be converted to jsonphp mongodb bson regexinterface returns the string representation of this regexinterfacephp mongodb bson timestampinterface returns the string representation of this timestampinterfacephp mysqlnduhconnection returns a string description of the last errorphp solrquery returns the maximum number of constraint counts that should be returned for the facet fieldsphp sqlite3 returns the number of database rows that were changed or inserted or deleted by the most recent sql statementphp sqlite3 returns a string that has been properly escapedphp sqlite3 returns the row id of the most recent insert into the databasephp sqlite3 returns the sqlite3 library version as a string constant and as a numberphp swffont returns the glyph shape of a char as a text string
关注编程学问公众号