| DB_common::quote() (Previous) | (Next) DB_common::quoteSmart() | ||||
| |
|||||
|
|||||
Format input so it can be safely used as a delimited identifier in a query. Identifiers are objects such as table or column names.
The format returned depends on the database type being used.
Delimited identifiers are known to generally work correctly under the following drivers:
| mssql |
| mysql |
| mysqli |
| oci8 |
| odbc(access) |
| odbc(db2) |
| pgsql |
| sqlite |
| sybase |
InterBase doesn't seem to be able to use delimited identifiers via PHP 4. They work fine under PHP 5.
Esta función no puede ser llamada estáticamente.
Function available since: Release 1.6.0
| Aviso | |||
Just because you CAN use delimited identifiers doesn't mean you SHOULD use them. In general, they end up causing way more problems than they solve. Portability is broken by using the following characters inside delimited identifiers:
|
Ejemplo 35-1. Using quoteIdentifier()
|
| DB_common::quote() (Previous) | (Next) DB_common::quoteSmart() | ||||||||
| |
|||||||||
|
|||||||||