略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: MongoCollection::__construct

2024-05-05

MongoCollection::__construct

(PECL mongo >=0.9.0)

MongoCollection::__construct创建一个新的集合

说明

public MongoCollection::__construct ( MongoDB $db , string $name )

参数

MongoDB db

所属的父数据库。

name

集合的名称。

返回值

返回一个新的集合对象。

错误/异常

如果集合名称无效,将会抛出一个默认的异常。

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.

官方地址:https://www.php.net/manual/en/mongocollection.construct.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3