← All built-ins / memset()
memset()
unsafememset(...$args): mixed
Parameters
| Name | Type | Description |
|---|---|---|
| $dst | pointer | target address |
| $byte | int | fill byte |
| $n | int | byte count |
Return value
Fills $n bytes with $byte.
Example
echo "// unsafe { memset($buf, 0, 1024); }";// unsafe { memset($buf, 0, 1024); }This call needs a real environment (window, server, database or stdin) — the snippet above shows the typical usage shape.