Function DebugFsStreamWrapper->stream_truncate

Definitions

sources/debug_fs.php

  • Truncates a file to a given length.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: bool

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$new_size integer No No required parameter N/A N/A Cut off size

Returns

  • Success status
  • Type: boolean
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Truncates a file to a given length.
 *
 * @param  integer $new_size Cut off size
 * @return boolean Success status
 */

public function stream_truncate(int $new_size) : bool