title: PHP Mongo Find in array
body: <p>Good morning!
  I have mongodb base:</p>
  <pre><code>{
      &quot;_id&quot; : ObjectId(&quot;.........&quot;),
      &quot;0&quot; : {
          &quot;title&quot; : &quot;name&quot;,
          &quot;description&quot; : &quot;database&quot;
      },
      &quot;1&quot; : {
          &quot;title&quot; : &quot;name2&quot;,
          &quot;description&quot; : &quot;database&quot;
      },
      &quot;2&quot; : {
          &quot;title&quot; : &quot;name3&quot;,
          &quot;description&quot; : &quot;database&quot;
      },
      &quot;3&quot; : {
          &quot;title&quot; : &quot;name4&quot;,
          &quot;description&quot; : &quot;database&quot;
      },
      &quot;4&quot; : {
          &quot;title&quot; : &quot;name5&quot;,
          &quot;description&quot; : &quot;database&quot;
      },
  ...
  </code></pre>
  <p>How do I search by name with regex?</p>
  <p>I've tried, but I'm probably  search not inside the array, right?</p>
  <pre><code>db.test.find({&quot;title&quot;: /.*n.*/})
  </code></pre>