title: MongoDB search $in _id php
body: <p>Usually when I search for one related ID I do it like this:</p>
  
  <pre><code>$thisSearch = $collection-&gt;find(array(
      'relatedMongoID' =&gt; new MongoId($mongoIDfromSomewhereElse)
  ));
  </code></pre>
  
  <p>How would I do it if I wanted to do something like this:</p>
  
  <pre><code>$mongoIdArray = array($mongoIDfromSomewhereElseOne, $mongoIDfromSomewhereElseTwo, $mongoIDfromSomewhereElseThree);
  $thisSearch = $collection-&gt;find(array(
          'relatedMongoID' =&gt; array( '$in' =&gt; new MongoId(mongoIdArray)
      )));
  </code></pre>
  
  <p>I've tried it with and without the  new MongoId(), i've even tried this with no luck.</p>
  
  <pre><code>foreach($mongoIdArray as $seprateIds){
  
  $newMongoString .= new MongoId($seprateIds).', ';
  
  }
  $mongoIdArray = explode(',', $newMongoString).'0';
  </code></pre>
  
  <p>how do I search '$in' "_id" when you need to have the new MongoID() ran on each _id?</p>