← All built-ins / ui_open_file()

ui_open_file()

ui_open_file(...$args): mixed

Parameters

NameTypeDescription
$titlestringdialog 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 = cancelled

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

See also

ui_save_file()ui_pick_folder()