(PHP 4 >= 4.2.0, PHP 5, PHP 7, PHP 8)
pg_num_fields — 返回字段的數目
$result
): int
pg_num_fields() 返回 PostgreSQL result
中的字段(列)數目。參數是由 pg_query() 函數返回的查詢(xún)結果資源號。如果出錯則返回 -1。
注意:
本函數以前的名字為
pg_numfields()
。
參見(jiàn) pg_num_rows() 和 pg_affected_rows()。