PHP - Manual: MongoDB\BSON\Document::has
2025-02-27
(mongodb >=1.16.0)
MongoDB\BSON\Document::has — Returns whether a key is present in the document
key
(string)The key to look for in the document.
官方地址:https://www.php.net/manual/en/mongodb-bson-document.has.php