CollectionModify::unset

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

CollectionModify::unsetUnset the value of document fields

說明

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

Removes attributes from documents in a collection.

警告

本函數(shù)還未編寫文檔,僅有參數(shù)列表。

參數(shù)

fields

The attributes to remove from documents in a collection.

返回值

CollectionModify object that can be used for further processing.

范例

示例 #1 mysql_xdevapi\CollectionModify::unset() example

<?php

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

?>