How can PHP7 insert data into mongodb, to determine whether it is successful or not?

$Manage- > executeBulkWrite (); cannot judge the value returned by this method. What"s going on

Aug.18,2021

reference documentation: http://php.net/manual/en/mong.

Returns MongoDBDriverWriteResult on success.

you can refer to the example below in the above documentation.

Menu