略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: newt_form_add_components

2026-10-03

newt_form_add_components

(PECL newt >= 0.1)

newt_form_add_components — Add several components to the form

说明

newt_form_add_components ( resource $form , array $components ) : void

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(5, 12, "Run Tool");
$b2 = newt_button(21, 12, "Quit");

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

参见

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.

官方地址:https://www.php.net/manual/en/function.newt-form-add-components.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3