db_escape_table

Versions
4.7 – 6
db_escape_table($string)
7
db_escape_table($table)

Restrict a dynamic table, column or constraint name to safe characters.

Only keeps alphanumeric and underscores.

Parameters

$table The table name to escape.

Return value

The escaped table name as a string.

Related topics

Code

includes/database/database.inc, line 2232

<?php
function db_escape_table($table) {
  return Database::getConnection()->escapeTable($table);
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.