← All built-ins / ui_open_file()
ui_open_file()
ui_open_file(...$args): mixed
Parameters
| Name | Type | Description |
|---|---|---|
| $title | string | dialog title |
Return value
Chosen file path, or false when cancelled.
Example
echo "$p = ui_open_file("Open project"); // false = cancelled";$p = ui_open_file("Open project"); // false = cancelledThis call needs a real environment (window, server, database or stdin) — the snippet above shows the typical usage shape.