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 eventbuffer linearizes data within buffer and returns it s contents as a stringphp evperiodic returns the absolute time that this watcher is supposed to trigger nextphp ibm db2 函数 returns the auto generated id of the last insert query that successfully executed on this connectionphp ibm db2 函数 returns a string containing the sqlstate returned by an sql statementphp imap 函数 returns a properly formatted email address given the mailbox host and personal infophp sqlite 函数 execute a query against a given database and returns an arrayphp sqlite 函数 returns the number of rows that were changed by the most recent sql statementphp sqlite 函数 fetches the first column of a result set as a stringphp sqlite 函数 executes a query against a given database and returns a result handlephp ktaglib id3v2 frame returns a string representation of the framephp mongodb bson binary returns a representation that can be converted to jsonphp mongodb bson decimal128 returns the string representation of this decimal128php mongodb bson decimal128interface returns the string representation of this decimal128interfacephp mongodb bson symbol returns the symbol as a stringphp mysqli returns a string description of the last errorphp 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 executes a query and returns a single resultphp sqlite3 returns the sqlite3 library version as a string constant and as a numberphp sqlite3stmt executes a prepared statement and returns a result set object
关注编程学问公众号