DB_common::quoteSmart()

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

Synopsis

mixed quoteSmart (mixed $in)

Beschreibung

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.

Parameter

mixed $in

the input to be quoted

Rückgabewert

mixed - the formatted data

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

Hinweise

Diese Methode kann nicht statisch aufgerufen werden.

Function available since: Release 1.6.0

Beispiel

Siehe auch

quoteIdentifier(), escapeSimple()