title: PHP array_search preg
body: <p>I want to search for '01.' that begins with the number of the array.</p>
  
  <p>Expected output:</p>
  
  <pre><code>1 =&gt; string '01.02' (length=5)
  2 =&gt; string '01.03' (length=5)
  3 =&gt; string '01.04' (length=5)
  32 =&gt; string '02.02' (length=5)
  33 =&gt; string '02.03' (length=5)
  34 =&gt; string '02.04' (length=5)
  35 =&gt; string '02.05' (length=5)
  </code></pre>
  
  <p>My code:</p>
  
  <pre><code>$key = array_search('/^01./', $tomb_datum);
  echo $key;
  var_dump($key);
  </code></pre>
  
  <p>These preg match not work.</p>