| Versions | |
|---|---|
| 4.7 – 6 | db_escape_table( |
| 7 | db_escape_table($table) |
Restricts a dynamic table name to safe characters.
Only keeps alphanumeric and underscores.
$table The table name to escape.
The escaped table name as a string.
drupal/
<?php
function db_escape_table($table) {
return Database::getConnection()->escapeTable($table);
}
?>