Skip to main content

table_exists()

public static function table_exists( $table_name, $bypass_cache=false )

Checks for the existence of a MySQL table.

Since:

  • 2.2
  • 2.9.30 (Added static caching and $bypass_cache param.)

Source: common.php:7111

Parameters

NameTypeDefaultDescription
$table_namestringTable to check for.
$bypass_cacheboolfalseWhether to bypass the statically cached results of previous checks.

Returns

  • bool