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 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 函数 returns the current row indexphp yp/nis 函数 returns the error string associated with the given error codephp gmagick returns the graphicsmagick api copyright as a stringphp mongocursorinterface checks if there are results that have not yet been sent from the databasephp mongodb bson int64 returns the string representation of this int64php mongodb bson regex returns a representation that can be converted to jsonphp mongodb bson timestamp returns a representation that can be converted to jsonphp mongodb bson utcdatetime returns the string representation of this utcdatetimephp reflectionclassconstant returns the string representation of the reflectionclassconstant objectphp sdo das xml 函数 returns sdo das xml document for a given xml instance stringphp solrcollapsefunction returns a string representing the constructed collapse functionphp 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
关注编程学问公众号