← All built-ins / memcpy()
memcpy()
unsafememcpy(...$args): mixed
Parameters
| Name | Type | Description |
|---|---|---|
| $dst | pointer | destination address |
| $src | pointer | source address |
| $n | int | byte count |
Return value
Copies $n raw bytes.
Example
echo "// unsafe { memcpy($dst, $src, $n); }";// unsafe { memcpy($dst, $src, $n); }This call needs a real environment (window, server, database or stdin) — the snippet above shows the typical usage shape.