PHP 8.5.0 Alpha 2 available for testing

streamWrapper::stream_truncate

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

streamWrapper::stream_truncateTruncar un flujo

Descripción

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

Responderá a la truncación, p.ej. a través de ftruncate().

Parámetros

new_size

El nuevo tamaño.

Valores devueltos

Esta función retorna true en caso de éxito o false si ocurre un error.

Ver también

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top