Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有像 MongoId::isValid($id) 这样的函数?你如何确定一个对象是否是 MongoDate 对象?检查 $mongoDateObject->sec isset() 是否?
if (is_a($mongoDateObject, 'MongoDate')) {...}
if (get_class($mongoDateObject) == 'MongoDate')) {...}
if ($mongoDateObject instanceof MongoDate) {...}