← All built-ins / ui_save_file()

ui_save_file()

ui_save_file(...$args): mixed

Parameters

NameTypeDescription
$titlestringdialog title

Return value

Chosen save path, or false when cancelled.

Example

echo "$p = ui_save_file("Save as");";
$p = ui_save_file("Save as");

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

See also

ui_open_file()