← All built-ins / ui_item_text()

ui_item_text()

ui_item_text(...$args): string

Parameters

NameTypeDescription
$handleintlist/combo handle
$indexintitem index

Return value

Text of the item at $index.

Example

echo "ui_item_text($list, ui_selected($list));";
ui_item_text($list, ui_selected($list));

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

See also

ui_selected()ui_items()