Can I use these PHP functions together?
<p>Can I use these PHP functions below:</p>

<pre><code>$user = mysql_escape_string($user);
$user = filter_var($user, FILTER_SANITIZE_STRING);
$user = stripslashes($user);
$user = trim($user);
</code></pre>

<p>together like this:</p>

<pre><code>$user = mysql_escape_string(stripslashes(trim(filter_var($user, FILTER_SANITIZE_STRING))));
</code></pre>

<p>sorry if this is a stupid question.</p>
