Home  >  Article  >  Backend Development  >  What is the difference between PHP's mongo and mongodb extensions?

What is the difference between PHP's mongo and mongodb extensions?

WBOY
WBOYOriginal
2016-12-01 00:56:301453browse

What is the difference between PHP’s mongo and mongodb extensions?


I am so depressed. A broken mongodb database has 2 extensions?
What is the difference between these two?
I changed the framework and got an error.

Reply content:

What is the difference between PHP’s mongo and mongodb extensions?


I am depressed. A broken mongodb database has 2 extensions?
What is the difference between these two?
I changed the framework and got an error.

Tips, you have also fallen into this trap. The classes and interfaces provided by the two extensions are completely different, haha. For example: some query operations that originally returned an array using mongo were changed to the form of cursor reading in mongodb.

  1. mongo This extension has been abandoned, but bug and security issues will continue to be fixed, does not support PHP7

  2. mongodb supports PHP7, and is constantly adding MongoDB new version feature support

PHP7’s MongoDB API is bullshit...

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn