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 eventbufferevent returns string describing the last failed dns lookup attemptphp ibm db2 函数 returns an object with properties that describe the db2 database clientphp fdf 函数 returns the fdf document as a stringphp maxdb 函数 returns a string description of the last errorphp maxdb 函数 returns the maxdb client version as a stringphp sqlite 函数 returns the number of rows that were changed by the most recent sql statementphp sqlite 函数 returns whether or not a previous row is availablephp sqlite 函数 executes a query and returns either an array for one single column or the value of the first rowphp imagickpixel returns the color as a stringphp mongocursorinterface checks if there are results that have not yet been sent from the databasephp mongodb bson int64 returns a representation that can be converted to jsonphp mongodb bson regex returns a representation that can be converted to jsonphp mongodb bson timestamp returns a representation that can be converted to jsonphp solrquery returns all the fields that solr should generate highlighted snippets forphp solrquery returns all the stats facets that were setphp 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 sqlite3result returns the name of the nth columnphp ktaglib tag returns the album string from a id3 tag
关注编程学问公众号