← All built-ins / ui_select()
ui_select()
ui_select(...$args): int
Parameters
| Name | Type | Description |
|---|---|---|
| $handle | int | list/combo handle |
| $index | int | item index to select |
Return value
Selects an item programmatically.
Example
echo "ui_select($list, 0);";
ui_select($list, 0);
This call needs a real environment (window, server, database or stdin) — the snippet above shows the typical usage shape.