DB_common::quoteSmart()

DB_common::quoteSmart() -- Formats input so it can be safely used as a literal

Synopsis

mixed quoteSmart (mixed $in)

Описание

Format input so it can be safely used as a literal in a query. Literals are values such as strings or numbers which get utilized in places like WHERE, SET and VALUES clauses of SQL statements.

The format returned depends on the PHP data type of input and the database type being used.

Параметр

mixed $in

the input to be quoted

Возвращаемое значение

mixed - the formatted data

The format of the results depends on the input's PHP type:

Заметка

Эта функция не должна вызываться статически.

Function available since: Release 1.6.0

Пример

См. также

quoteIdentifier(), escapeSimple()


HIVE: All information for read only. Please respect copyright!
Hosted by hive йца: йХЕБЯЙЮЪ ЦНПНДЯЙЮЪ АХАКХНРЕЙЮ