略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: CollectionModify::unset

2024-11-14

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.

警告

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

参数

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();

?>
add a noteadd a note

User Contributed Notes

There are no user contributed notes for this page.

官方地址:https://www.php.net/manual/en/mysql-xdevapi-collectionmodify.unset.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3