PHP: streamWrapper::stream_truncate - Manual
(PHP 5 >= 5.4.0, PHP 7, PHP 8)
streamWrapper::stream_truncate — Truncate stream
Description
public function streamWrapper::stream_truncate(int $new_size): bool
Will respond to truncation, e.g., through ftruncate().
Parameters
new_size-
The new size.
See Also
- ftruncate() - Truncates a file to a given length
Found A Problem?
User Contributed Notes
There are no user contributed notes for this page.