Learn the "why" behind slow queries and how to fix them in our 2-Part Webinar.
Register now >
Docs Menu
Docs Home
/ /

MongoDB\GridFS\Bucket::getBucketName()

MongoDB\GridFS\Bucket::getBucketName()

이 버킷의 이름을 반환합니다.

function getBucketName(): string

이 버킷의 이름(문자열)입니다.

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

이 경우 출력은 다음과 유사합니다:

string(2) "fs"

돌아가기

findOne()

이 페이지의 내용