= 5.4.0, PHP 7, PHP 8)streamWrapper::stream_truncate — Truncate stream說明public streamWrapper::stream_truncate(in">

streamWrapper::stream_truncate

(PHP 5 >= 5.4.0, PHP 7, PHP 8)

streamWrapper::stream_truncateTruncate stream

說明

public streamWrapper::stream_truncate(int $new_size): bool

Will respond to truncation, e.g., through ftruncate().

參數(shù)

new_size

The new size.

返回值

成功時返回 true, 或者在失敗時返回 false。

參見