title: Filter out array values that do not contain a specified substring
body: <p>I would like to know how can I filter an array to remove values that do not contain a specified string?</p>
  <p>Example:</p>
  <pre><code>$array = ['January', 'February', 'March', 'April'];
  $to_search = &quot;uary&quot;; // not case sensitivity
  $result = somefunction($array, $to_search );
  print_r($result);
  </code></pre>
  <p>The expected output is:</p>
  <pre><code>$result = ['January', 'February'];
  </code></pre>
  <p>I hope to use the most efficient and fastest way in searching among the arrays because the array that I might use contains at least 100 items.</p>