streamWrapper::stream_truncate

(PHP 5 >= 5.4.0, PHP 7)

streamWrapper::stream_truncateTruncate stream

说锟斤拷

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

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

锟斤拷锟斤拷

new_size

The new size.

锟斤拷锟斤拷值

锟缴癸拷时锟斤拷锟斤拷 TRUE锟斤拷 锟斤拷锟斤拷锟斤拷失锟斤拷时锟斤拷锟斤拷 FALSE锟斤拷

锟轿硷拷

  • ftruncate() - 锟斤拷锟侥硷拷锟截断碉拷锟斤拷锟斤拷锟侥筹拷锟斤拷