Can two variables be used in a function at once?
<p>The function <code>check_porn_terms</code> below checks to see if a variable contains terms that are not family friendly, and it it does, then re-directs the user back to the main page.  </p>

<p>As listed below, it checks to see if the variable <code>$title</code> has non-family friendly terms.  I would like to perform this check on another variable, <code>$cleanurl</code>.  Could I just replace <code>check_porn_terms($title)</code> below with <code>check_porn_terms($title, $cleanurl)</code> or something like that?  If not, how should I do it?</p>

<p>Thanks in advance,</p>

<p>John</p>

<pre><code>if(!check_porn_terms($title))
{

   session_write_close();
   header("Location:http://www.domain.com/index.php");
   exit;

}
</code></pre>
