DB_common::quoteSmart()

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

Referentiesamenvatting

mixed quoteSmart (mixed $in)

Beschrijving

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

Return waarde

mixed - the formatted data

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

Note

Deze functie kan niet statisch worden aangeroepen.

Function available since: Release 1.6.0

Voorbeeld

Zie

quoteIdentifier(), escapeSimple()