title: How to search for a part of a string in an array?
body: <p>I want to search whether the complete string or a part of the string is a part of the array. How can this be achieved in PHP?</p>
  
  <p>Also, how can I use <a href="http://en.wikipedia.org/wiki/Metaphone" rel="nofollow">metaphone</a> in it as well?</p>
  
  <p>Example:</p>
  
  <pre><code>array1={'India','USA','China'};
  array2={'India is in east','United States of America is USA','Made in China'}
  </code></pre>
  
  <p>If I search for <code>array1</code> in <code>array2</code>, then:</p>
  
  <p>'India' should match 'India is in east' and similarly for USA &amp; China.</p>