Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
PHP: fdf_get_value - Manual
[go: Go Back, main page]

PHP  
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
search for in the  
<fdf_get_statusfdf_get_version" width="11" height="7"/>
view the version of this page
Last updated: Sat, 21 Jan 2006

fdf_get_value

(PHP 3 >= 3.0.6, PHP 4, PHP 5)

fdf_get_value -- フィールドの値を得る

説明

mixed fdf_get_value ( resource fdf_document, string fieldname [, int which] )

fdf_get_value() 関数は、要求されたフィールド fieldname の値を得ます。

オプションの which を渡すことで、配列フィールドの 要素が取得可能です。番号はゼロから始まります。配列以外のフィールドでは オプションのパラメータ which は無視されます。

注意: 配列のサポート、オプションのパラメータ which は PHP 4.3 で追加されました。

fdf_set_value() も参照ください。



add a note add a note User Contributed Notes
fdf_get_value
mclinden at informed dot net
18-Sep-2002 06:35
(i filed a bug report/feature request for this on bugs.php.net and assigned it to myself hartmut@php.net)

The default behavior for the FDF Toolkit is to return an FDFErcNoValue for the FDFGetValue when the field exists but has no value.

Whether or not this is truly an error is debateable. It seems to become an issue in documents created by Acrobat 5 when optional fields are included in a form with required fields since the default behavior seems to be to populate the HTTP_FDF_DATA with the results of the FDFNextFieldName enumerator, which would include the fields which have no value.

This would not be a problem except that the PHP function fdf_get_value() does not specifically test for the FDFErcNoValue condition but, instead, tests for the more general FDFErcOK. If this value is not the result of the error code, the system issues warnings (the display of which could be turned off), but the broader question is, should this be a warning condition at all?

Put another way, should a return of FDFErcNoValue for FDFGetValue be considered an event worth generating a warning?

<fdf_get_statusfdf_get_version" width="11" height="7"/>
 Last updated: Sat, 21 Jan 2006
show source | credits | sitemap | contact | advertising | mirror sites 
Copyright © 2001-2006 The PHP Group
All rights reserved.
This mirror generously provided by: PacketBusiness, Inc.
Last updated: Tue May 2 07:16:05 2006 JST