fdf_next_field_name
PHP function
Edit on GitHub ✎
(PHP 4, PHP 5 < 5.3.0, PECL fdf SVN)
Get the next field name
Description
fdf_next_field_name(resource $fdf_document, [string $fieldname]): string
Gets the name of the field after the given field. This name can be used with several functions.
Parameters
fdf_documentThe FDF document handle, returned by
fdf_create(),fdf_open()orfdf_open_string().fieldnameName of the FDF field, as a string. If not given, the first field will be assumed.
Return Values
Returns the field name as a string.
Examples
Detecting all fieldnames in a FDF
php
<?php
$fdf = fdf_open($HTTP_FDF_DATA);
for ($field = fdf_next_field_name($fdf);
$field != "";
$field = fdf_next_field_name($fdf, $field)) {
echo "field: $field\n";
}
?>