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

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

WBOY
Release: 2023-03-01 21:44:01
Original
1493 people have browsed it

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...

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template