I want to use the MongoDB Driver, but it throw me an error, when i use it:
$mongo = new MongoDB\\Driver\\Manager(\"mongodb://localhost:27017\");
Might be your CLI version of php is different ,check php version in terminal using php -v. and then switch accordingly... FOR EX-:
From PHP 7.1 => PHP 5.6
$ sudo update-alternatives --set php /usr/bin/php5.6.
I hope it will help you guys.