mysql_xdevapi\CollectionModify
PHP Manual

CollectionModify::unset

(No version information available, might only be in Git)

CollectionModify::unsetUnset the value of document fields

说明

public mysql_xdevapi\CollectionModify mysql_xdevapi\CollectionModify::unset ( array $fields )

Removes attributes from documents in a collection.

Warning

本函数还未编写文档,仅有参数列表。

参数

fields

The attributes to remove from documents in a collection.

返回值

CollectionModify object that can be used for further processing.

范例

Example #1 mysql_xdevapi\CollectionModify::unset() example

<?php

$res 
$coll->modify('job like :job_name')->unset(["age""name"])->bind(['job_name' => 'Plumber'])->execute();

?>

mysql_xdevapi\CollectionModify
PHP Manual