Easy Tutorial
❮ Func String Strtolower Func Filesystem Is Executable ❯

English: # PHP ftruncate() Function



Definition and Usage

The ftruncate() function truncates an open file to the specified length.

It returns TRUE on success and FALSE on failure.

Syntax

Parameter Description
file Required. Specifies the open file to truncate.
size Required. Specifies the new file size.

Example

The above code will output:


❮ Func String Strtolower Func Filesystem Is Executable ❯