title: Define multiple needles using stripos
body: <p>How can i define multiple needles and still perform the same actions below. Im trying to define extra keywords such as numbers, numerals, etc... as of now i have to create a duplicate if loop with the minor keyword change.</p>
  
  <pre><code>if (stripos($data, 'digits') !== false) {
  $arr = explode('+', $data);
  
  for ($i = 1; $i &lt; count($arr); $i += 2) {
      $arr[$i] = preg_replace('/\d/', '', $arr[$i]);
  }
  
  $data = implode('+', $arr);
  }
  </code></pre>