← All built-ins / ui_progress()

ui_progress()

ui_progress(...$args): int

Parameters

NameTypeDescription
$handleintprogress-bar handle
$percentint0–100

Return value

Sets the progress value.

Example

echo "ui_progress($bar, 75);";
ui_progress($bar, 75);

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

See also

ui_add()ui_slider_set()