← All built-ins / ui_msg()

ui_msg()

ui_msg(...$args): int

Parameters

NameTypeDescription
$winintparent window handle
$titlestringdialog title
$textstringdialog message
$typeint0 info 1 warning 2 error 3 questionoptional

Return value

Shows a message box (blocks until dismissed).

Example

echo "ui_msg($win, "Saved", "All changes stored.");";
ui_msg($win, "Saved", "All changes stored.");

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

See also

ui_open_file()ui_save_file()