PHP function stream_set_chunk_size()

PHP > 5.4.0
Set the stream chunk size.

Parameters

Parameter Data type Default value Note
$fp resource not
$chunk_size int not

Return values

int

Returns the previous chunk size on success.
Will return FALSE if chunk_size is less than 1 or greater than PHP_INT_MAX.

Additional resources

Official documentation for stream-set-chunk-size

Newsletter

Nejlepsi tipy a triky o PHP do Vaseho e-mailu. Clanky a novinky nejen ze sveta PHP a programovani.