Umil.table index exists

umil::table_index_exists –– Check if an index/key exists on a database table using the Umil Library.

This can not check for Primary or Unique columns.

Description
string umil::table_index_exists ( string $table_name, string $index_name )

Return Values
True if the index/key on the database table exists False if the index/key on the database table does not exist

Example #1
Check if an index named 'test_id' exists on the database table named 'phpbb_test' $umil->table_index_exists('phpbb_test', 'test_id');

Example #2
Check if an index named 'user_foo' exists on the database table named 'phpbb_users' $umil->table_index_exists(USERS_TABLE, 'user_foo');