# newt_form_destroy

(PECL newt >= 0.1)

newt_form_destroy — Destroys a form

### 说明

newt_form_destroy ( resource `$form` ) : void

This function frees the memory resources used by the form and all of the components which have been added to the form (including those components which are on subforms). Once a form has been destroyed, none of the form's components can be used.

### 参数

`form`

  Form component, which is going to be destroyed

### 返回值

没有返回值。

### 参见

- newt_form_run() - Runs a form
- newt_run_form() - Runs a form