title: PHP MongoDB findone $and
body: <p>How would I find a row with two objects? Example:</p>
  
  <pre><code>    $m = new Mongo();
      $db = $m-&gt;mydb-&gt;user_tokens;
      $cursor = $db-&gt;findOne(array('$and' =&gt; array('user_id' =&gt; $userid, 'token_id' =&gt; $tokenid)));
  </code></pre>
  
  <p>I'm not sure if you can even do this in PHP. I have a python backend server that I can do something similar to this but need to be able to do it on the frontend as well.</p>