1. Home
  2. Docs
  3. Function Reference
  4. Functions
  5. column_exist()

column_exist()

Check if a table column exists.

Copy to Clipboard

Parameters

$table

Table name

$column

Column name

$can_echo_query

If true the query will be echoed out (default false)

$can_prefix

If true, prefixes table names with the WordPress table prefix (default true)

Return

boolean

true if column exists

Example

Copy to Clipboard
Tags