title: Call to undefined method MongoDB\Collection::insert() in [PATH] on line 20
body: <p>I want to insert a json array into my MongoDB, that sounds a simple task. I use MongoDB 3.2, PHP 5.5 and XamppServer 32 bit. I have already installed PHP Driver for MongoDB and Composer. So I tried to run the code below:</p>
  
  <pre><code>require "vendor/autoload.php";
  
  // create connection
  $m = new MongoDB\Client();
  // select a database
  $db = $m-&gt;test;
  // select a collection
  $collection = $db-&gt;foo;
  
  //insert to Database
  $document = array( "title" =&gt; "Mongo Sample", "number" =&gt; 2 );
  $collection-&gt;insert($document);
  </code></pre>
  
  <p>But on running, I got this error:</p>
  
  <pre><code>**Fatal error:** Call to undefined method MongoDB\Collection::insert() in C:\xampp\...\test.php on line 13
  </code></pre>
  
  <p>I can't figure out how to fix the problem.</p>