filter_input(INPUT_GET, ‘my_string’, FILTER_SANITIZE_STRING); VS Regular Expression Preg Match PHP
<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>
