string metaColumnNames( string $tableName, optional bool $numericIndices=false, optional bool $usePostgresAttnum=false )
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
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 metaColumns() instead.
If the optional 2nd argument is passed as true, the indexes are returned as a numeric index based on the natural order of the fields in the table. There is no definitive order of column names returned, it may be based on alphabetical order or possibly the order in which the columns were added to the table.
For Postgres databases only, a 3rd parameter is available to use the Postgres Column Number as the key.