« MongoDB\BSON\Document::offsetGet
MongoDB\BSON\Document::offsetUnset »

MongoDB\BSON\Document::offsetSet

(mongodb >=1.17.0)

MongoDB\BSON\Document::offsetSet — Implementation of ArrayAccess

説明

final public function MongoDB\BSON\Document::offsetSet(mixed $key, mixed $value): void

Sets the value at the specified key to value.

パラメータ

key

The index being set.

value

The new value for the key.

戻り値

値を返しません。

エラー / 例外

関連キーワード:
MongoDB   Document   Implementation   ArrayAccess   offsetSet   mixed   offsetGet   offsetUnset   mongodb   final   Sets   specified   index   Always   throws   Driver   Exception   LogicException
関連する関数・ページ:
mongodb-bson-document.offsetunset   mongodb-bson-document.tostring   mongodb-bson-document.offsetget   mongodb-bson-packedarray.offsetset   class.mongodb-bson-document   mongodb-bson-document.getiterator