|
CollectionModify::replaceReplace document field Description
public mysql_xdevapi\CollectionModify mysql_xdevapi\CollectionModify::replace(string
$collection_field , string $expression_or_literal )Replace (update) a given field value with a new one. Parameters
Return ValuesA CollectionModify object. ExamplesExample #1 mysql_xdevapi\CollectionModify::replace example
The above example will output something similar to: Array ( [0] => Array ( [_id] => 00005b6b5361000000000000011b [name] => Bern [traits] => Array ( [0] => Friend [1] => Brother [2] => Human ) ) ) |