← All built-ins / ui_item_text()
ui_item_text()
ui_item_text(...$args): string
Parameters
| Name | Type | Description |
|---|---|---|
| $handle | int | list/combo handle |
| $index | int | item 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.