← All built-ins / ui_check_set()

ui_check_set()

ui_check_set(...$args): int

Parameters

NameTypeDescription
$handleintcheckbox handle
$checkedboolnew state

Return value

Sets the checkbox state.

Example

echo "ui_check_set($cb, true);";
ui_check_set($cb, true);

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

See also

ui_check_get()