ftruncate

ftruncate

(PHP 4, PHP 5, PHP 7)

ftruncateTruncates a file to a given length

Description

bool ftruncate ( resource $handle , int $size )

Takes the filepointer, handle, and truncates the file to length, size.

Parameters

handle

The file pointer.

Note:

The handle must be