The behaviour of these functions is affected by settings in php.ini.
Here's a short explanation of the configuration directives.
dbx.colnames_case
Columns names can be returned "unchanged" or converted to "uppercase" or "lowercase". This directive can be overridden with a flag to dbx_query.