Navigation
This version of the documentation is archived and no longer supported. To learn how to upgrade your version of PHP Library Manual, refer to the upgrade documentation.

MongoDB\GridFS\Bucket::getChunkSizeBytes()

Changed in version 1.2.

Definition

MongoDB\GridFS\Bucket::getChunkSizeBytes

Returns the chunk size of this bucket in bytes.

function getChunkSizeBytes(): integer

Return Values

The chunk size of this bucket in bytes.

Examples

<?php

$bucket = (new MongoDB\Client)->test->selectGridFSBucket();

var_dump($bucket->getChunkSizeBytes());

The output would then resemble:

int(261120)