Quote a string
for safe use in a query.
The result is truncated at any zero byte and wrapped in single quotes.
NOTE:
Beware of matching character encodings.
Params:#
-
string
$payload#
The payload to quote for use in a query.
Returns:#
-
string
, a single-quote wrapped string
safe for literal use in a query.
-
FALSE
, if quoting fails.
Throws:#