PHP Manual

  • English French German Portuguese Spanish
Manuel PHP Référence des fonctions Autres extensions basiques Flux streamWrapper streamWrapper::stream_truncate
streamWrapper streamWrapper::__construct streamWrapper::__destruct streamWrapper::dir_closedir streamWrapper::dir_opendir streamWrapper::dir_readdir streamWrapper::dir_rewinddir streamWrapper::mkdir streamWrapper::rename streamWrapper::rmdir streamWrapper::stream_cast streamWrapper::stream_close streamWrapper::stream_eof streamWrapper::stream_flush streamWrapper::stream_lock streamWrapper::stream_metadata streamWrapper::stream_open streamWrapper::stream_read streamWrapper::stream_seek streamWrapper::stream_set_option streamWrapper::stream_stat streamWrapper::stream_tell streamWrapper::stream_truncate streamWrapper::stream_write streamWrapper::unlink streamWrapper::url_stat
  • streamWrapper::stream_tell
  • streamWrapper::stream_write

streamWrapper::stream_truncate

(PHP 5 >= 5.4.0)

streamWrapper::stream_truncate — Tronque un flux

Description

public bool streamWrapper::stream_truncate ( int $new_size )

Répondra à une opération de tronquature effectuée au moyen de ftruncate().

Liste de paramètres

new_size

La nouvelle taille.

Valeurs de retour

Cette fonction retourne TRUE en cas de succès ou FALSE si une erreur survient.

Voir aussi

  • ftruncate() - Tronque un fichier

© Copyright © 2001-2015 The PHP Group.

© Copyright 2014. Diseñado por PHP Manual usando jfCMS.