中文文档
English
Spanish
French
Japanese
Brazilian
German
Turkish
Russian
MongoDB\BSON\Iterator::__construct »
« MongoDB\BSON\PackedArray::unserialize
PHP 手册
函数参考
数据库扩展
针对各数据库系统对应的扩展
MongoDB
MongoDB\BSON
The MongoDB\BSON\Iterator class
(mongodb >=1.16.0)
简介
Iterator used to iterate a BSON document or array.
类摘要
final
class
MongoDB\BSON\Iterator
implements
Iterator
{
final
private
__construct
()
public
current
():
mixed
public
key
():
string
|
int
public
next
():
void
public
rewind
():
void
public
valid
():
bool
}
目录
MongoDB\BSON\Iterator::__construct
— Construct a new BSON iterator (unused)
MongoDB\BSON\Iterator::current
— Returns the current element
MongoDB\BSON\Iterator::key
— Returns the key of the current element
MongoDB\BSON\Iterator::next
— Advances the iterator to next element
MongoDB\BSON\Iterator::rewind
— Rewinds the Iterator to the first element
MongoDB\BSON\Iterator::valid
— Checks if current position is valid