MongoCursor::hasNext
MongoCursor::key
MongoCursor
PHP Manual

# MongoCursor::hint

(PECL mongo >=0.9.0)

MongoCursor::hint — Gives the database a hint about the query

### Opis

public MongoCursor MongoCursor::hint ( array `$key_pattern` )

### Parametry

`key_pattern`

  Indexes to use for the query.

### Zwracane wartości

Returns this cursor.

### Błędy/Wyjątki

Throws MongoCursorException if this cursor has started iterating.

MongoCursor::hasNext
MongoCursor::key
MongoCursor
PHP Manual