PHP  
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
search for in the  
<pg_field_namepg_field_prtlen>
Last updated: Mon, 16 Jul 2012

pg_field_num

(PHP 4 >= 4.2.0, PHP 5)

pg_field_num -- 返回字段的编号

说明

int pg_field_num ( resource result, string field_name )

pg_field_num() 返回给定 PostgreSQL result 资源中的 field_name 所代表的列(字段)的编号。字段编号从 0 开始。如果出错本函数返回 -1。

例子参见 pg_field_name() 页。

注: 本函数以前的名字为 pg_fieldnum()

参见 pg_field_name()




<pg_field_namepg_field_prtlen>
 Last updated: Mon, 16 Jul 2012
 
Copyright © 2001-2005 The PHP Group
All rights reserved.
This unofficial mirror is operated at: http://manual.phpv.net/
Last updated: Thu Jul 7 19:13:47 2005 CST