Join us Sept 17 at .local NYC! Use code WEB50 to save 50% on tickets. Learn more >
MongoDB Event
Docs Menu
Docs Home
/ / /
PHP Library Manual
/ /

MongoDB\GridFS\Bucket::getChunkSizeBytes()

Changed in version 1.2.

MongoDB\GridFS\Bucket::getChunkSizeBytes()

Returns the chunk size of this bucket in bytes.

function getChunkSizeBytes(): integer

The chunk size of this bucket in bytes.

<?php
$bucket = (new MongoDB\Client)->test->selectGridFSBucket();
var_dump($bucket->getChunkSizeBytes());

The output would then resemble:

int(261120)

Back

getChunksCollection()

On this page