# fdf_get_value

(PHP 4, PHP 5 < 5.3.0, PECL fdf SVN)

fdf_get_value — Get the value of a field

### Descripción

fdf_get_value(resource `$fdf_document`, string `$fieldname`, int `$which` = -1): mixed

Gets the value for the requested field.

### Parámetros

`fdf_document`

  The FDF document handle, returned by fdf_create(), fdf_open() or fdf_open_string().

`fieldname`

  Name of the FDF field, as a string.

`which`

  Elements of an array field can be retrieved by passing this optional parameter, starting at zero. For non-array fields, this parameter will be ignored.

### Valores devueltos

Returns the field value.

### Historial de cambios

Versión | Descripción
--- | ---
4.3.0 | Support for arrays and the `which` parameter were added.

### Ver también

- fdf_set_value() - Set the value of a field