The MongoDB\BSON\Iterator class

(mongodb >=1.16.0)

Introduction

Iterator used to iterate a BSON document or array.

Class synopsis

finalclassMongoDB\BSON\IteratorimplementsIterator {
finalprivate__construct()
publiccurrent(): mixed
publickey(): string|int
publicnext(): void
publicrewind(): void
publicvalid(): bool
}

Table of Contents

To Top