← All built-ins / ui_window()

ui_window()

ui_window(...$args): int

Parameters

NameTypeDescription
$titlestringwindow title
$xintleft position
$yinttop position
$wintwidth
$hintheight

Return value

Window handle for ui_show/ui_add/ui_title, …

Example

echo "$win = ui_window("HolyPHP", 100, 100, 400, 300);";
$win = ui_window("HolyPHP", 100, 100, 400, 300);

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

See also

ui_run_main()ui_add()ui_show()