PHP - Manual: CollectionModify::unset
2024-12-21
(No version information available, might only be in Git)
CollectionModify::unset — Unset the value of document fields
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();
?>
官方地址:https://www.php.net/manual/en/mysql-xdevapi-collectionmodify.unset.php