db_escape_table($table)
drupal/includes/database/database.inc, line 2384
Restricts a dynamic table, column, or constraint name to safe characters.
Only keeps alphanumeric and underscores.
$table The table name to escape.
The escaped table name as a string.
| Name | Description |
|---|---|
| Database abstraction layer | Allow the use of different database servers using the same code base. |
function db_escape_table($table) {
return Database::getConnection()->escapeTable($table);
}