pg_num_fields
(PHP 4 >= 4.2.0, PHP 5, PHP 7, PHP 8)
pg_num_fields — 返回欄位的數目
說明
      pg_num_fields(resource 
    $result): int
     pg_num_fields() 返回 PostgreSQL result 中的欄位(列)數目。參數是由 pg_query() 函式返回的查詢結果資源號。如果出錯則返回 -1。
    
注意:
本函式以前的名字為
pg_numfields()。