文档菜单
文档首页
/ / /
PHP库手册
/ / /

MongoDB\Model\IndexInfo::getVersion()

本页内容

  • 定义
  • 返回值
  • 示例
  • 另请参阅
MongoDB\Model\IndexInfo::getVersion()

返回索引版本。

function getVersion(): integer

索引版本。

<?php
$info = new IndexInfo([
'v' => 1,
]);
var_dump($info->getVersion());

输出将类似于

int(1)
  • MongoDB Collection::createIndex()

  • listIndexes 命令参考 MongoDB 手册

返回

getNamespace()