← All built-ins / ui_clip_set()

ui_clip_set()

ui_clip_set(string $s): int

Parameters

NameTypeDescription
$textstringtext for the clipboard

Return value

Copies to the system clipboard.

Example

echo "ui_clip_set("copied!");";
ui_clip_set("copied!");

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

See also

ui_clip_get()