The ftruncate() function truncates an open file to the specified length.Returns TRUE on success, or FALSE on failure.
bool ftruncate ( resource $handle , int $size )
Takes the filepointer, handle, and truncates the file to length, size.
Parameter | Description |
---|---|
file | Required. Specifies the open file to truncate |
size | Required. Specifies the new file size |