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

mysql_fetch_lengths

(PHP 3, PHP 4, PHP 5)

mysql_fetch_lengths --  取得结果集中每个输出的长度

说明

array mysql_fetch_lengths ( resource result )

以数组返回上一次用 mysql_fetch_row() 取得的行中每个字段的长度,如果出错返回 FALSE

mysql_fetch_lengths() 将上一次 mysql_fetch_row()mysql_fetch_array()mysql_fetch_object() 所返回的每个列的长度储存到一个数组中,偏移量从 0 开始。

参见 mysql_fetch_row()




<mysql_fetch_fieldmysql_fetch_object>
 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