Docs Home → PHP Library Manual
MongoDB\GridFS\Bucket::getBucketName()
On this page
Definition
Return Values
The name of this bucket as a string.
Examples
$bucket = (new MongoDB\Client)->test->selectGridFSBucket(); var_dump($bucket->getBucketName());
The output would then resemble:
string(2) "fs"