← All built-ins / ui_clip_set()
ui_clip_set()
ui_clip_set(string $s): int
Parameters
| Name | Type | Description |
|---|---|---|
| $text | string | text 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.