|
CollectionModify::setSet document attribute Description
public mysql_xdevapi\CollectionModify mysql_xdevapi\CollectionModify::set(string
$collection_field , string $expression_or_literal )Sets or updates attributes on documents in a collection. Parameters
Return ValuesA CollectionModify object. ExamplesExample #1 mysql_xdevapi\CollectionModify::set example
The above example will output something similar to: Array ( [0] => Array ( [_id] => 00005b6b53610000000000000111 [name] => Bern [traits] => Array ( [0] => Friend [1] => Brother [2] => Human ) ) ) |