ADOdb

Database Abstraction Layer for PHP

User Tools

Site Tools


v5:dictionary:metacolumnnames

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
v5:dictionary:metacolumnnames [2016/01/13 02:06]
mnewnham ↷ Links adapted because of a move operation
v5:dictionary:metacolumnnames [2016/02/24 18:24] (current)
mnewnham Improved description of casing of keys and values
Line 10: Line 10:
 </​WRAP>​ </​WRAP>​
 ===== Description ===== ===== Description =====
-The function ''​metaColumnNames()''​ accepts a string parameter, a table name in the database that is currently attached, and returns either an associative array of the columns in the table, or a numeric array based on the value of ''​$numericIndices''​. ​The keys of the array are the column names in upper case and the values are the column names in lower case. For a full description of column information,​ use the function [[v5:​dictionary:​metacolumns|metaColumns()]] instead.+The function ''​metaColumnNames()''​ accepts a string parameter, a table name in the database that is currently attached, and returns either an associative array of the columns in the table, or a numeric array based on the value of ''​$numericIndices''​. ​ 
 + 
 +----------------------- 
 +==== Casing ==== 
 +For associative arrays, the keys of the array are the column names in **upper case**. 
 + 
 +For both numeric ​and associative arrays, ​the values ​of the array are the column names in the **natural ​case** of the database. 
 + 
 +For a full description of column information,​ use the function [[v5:​dictionary:​metacolumns|metaColumns()]] instead.
  
 ==== $numericIndices ==== ==== $numericIndices ====
v5/dictionary/metacolumnnames.txt · Last modified: 2016/02/24 18:24 by mnewnham