list fieldnames in table? (from PHP)

Поиск
Список
Период
Сортировка
Is there a simple way to list fieldnames in a table, from PHP?

When on the command-line, I just do \d tablename

But how to get the fieldnames from PHP commands?

В списке pgsql-general по дате отправления: