Newt 函数
在线手册:中文 英文
PHP手册

newt_form_add_components

(PECL newt >= 0.1)

newt_form_add_componentsAdd several components to the form

说明

void newt_form_add_components ( resource $form , array $components )

Adds several components to the form.

参数

form

Form to which components will be added

components

Array of components to add to the form

返回值

没有返回值。

范例

Example #1 A newt_form_add_components() example

<?php
$form 
newt_form();

$b1 newt_button(512"Run Tool");
$b2 newt_button(2112"Quit");

newt_form_add_components($form, array($b1$b2));
?>

参见


Newt 函数
在线手册:中文 英文
PHP手册