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 priorityqueue returns a representation that can be converted to jsonphp stack returns a representation that can be converted to jsonphp ibm db2 函数 returns an object with properties that describe the db2 database clientphp ibm db2 函数 returns a string containing the last sql statement error messagephp eio 函数 returns string describing the last error associated with a request resourcephp maxdb 函数 returns a string description for last statement errorphp rpm reader 函数 returns a string representing the current version of the rpmreader extensionphp sqlite 函数 returns the number of rows that were changed by the most recent sql statementphp sqlite 函数 returns the name of a particular fieldphp imagick returns the image as a stringphp mongodb bson decimal128interface returns the string representation of this decimal128interfacephp mongodb bson maxkey returns a representation that can be converted to jsonphp mongodb bson utcdatetime returns a representation that can be converted to jsonphp pharfileinfo returns crc32 code or throws an exception if crc has not been verifiedphp solrquery returns the list of fields that will be returned in the responsephp 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 sqlite3 library version as a string constant and as a numberphp sqlite3stmt returns the number of parameters within the prepared statementphp sqlite3stmt returns whether a statement is definitely read only
关注编程学问公众号