streamWrapper::stream_truncate
PHP function
Edit on GitHub ✎
(PHP 5 >= 5.4.0, PHP 7, PHP 8)
Truncate stream
Description
streamWrapper::stream_truncate(int $new_size): bool
Will respond to truncation, e.g., through ftruncate().
Parameters
new_sizeThe new size.
Return Values
Success