← All built-ins / ui_set()

ui_set()

ui_set(...$args): int

Parameters

NameTypeDescription
$handleintcontrol handle
$textstringnew text/value

Return value

Sets the control's text (label, button caption, input value, …).

Example

echo "ui_set($lbl, "Count: " . $n);";
ui_set($lbl, "Count: " . $n);

This call needs a real environment (window, server, database or stdin) — the snippet above shows the typical usage shape.

See also

ui_get()