title: How to search in an array with preg_match?
body: <p>How do I search in an array with preg_match?</p>
  
  <p>Example:</p>
  
  <pre><code>&lt;?php
  if( preg_match( '/(my\n+string\n+)/i' , array( 'file' , 'my string  =&gt; name', 'this') , $match) )
  {
      //Excelent!!
      $items[] = $match[1];
  } else {
      //Ups! not found!
  }
  ?&gt;
  </code></pre>