title: filter_input(INPUT_GET, ‘my_string’, FILTER_SANITIZE_STRING); VS Regular Expression Preg Match PHP
body: <p>Out of experience which is better to use </p>
  
  <pre><code>filter_input(INPUT_GET, ‘my_string’, FILTER_SANITIZE_STRING);
  </code></pre>
  
  <p>Or a regular expression preg_match for sanitizing user in-putted data ? </p>