-1

Messed-up with the new MongoDB documentation and can't understand how it going to help, any help would be appreciated.
As an example, i used to use like this:
$con = new MongoClient();
$db = $con->hasan;
$friends = $db->friends;
$data = [
'name' => 'Xyz',
'age' => '21',
'sex' =>...