# fdf_set_opt

(PHP 4 >= 4.0.2, PHP 5, PHP 7)

fdf_set_opt — Sets an option of a field

### 说明

fdf_set_opt ( resource `$fdf_document` , string `$fieldname` , int `$element` , string `$str1` , string `$str2` ) : bool

Sets options of the given field.

### 参数

`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.

`element`

`str1`

`str2`

### 返回值

成功时返回 `TRUE`， 或者在失败时返回 `FALSE`。

### 参见

- fdf_set_flags() - Sets a flag of a field