db_escape_table
- Versions
- 4.7 – 6
db_escape_table($string)- 7
db_escape_table($table)
Restrict a dynamic tablename to safe characters.
Only keeps alphanumeric and underscores.
Related topics
Code
includes/database.inc, line 321
<?php
function db_escape_table($string) {
return preg_replace('/[^A-Za-z0-9_]+/', '', $string);
}
?>Login or register to post comments 