← All built-ins / ui_select()

ui_select()

ui_select(...$args): int

Parameters

NameTypeDescription
$handleintlist/combo handle
$indexintitem 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.

See also

ui_selected()