multiple arguments in a function to run through arrary_filter
<p>How can i run multiple arguments through <code>array_filter</code>? Here is my function with the multiple arguments and the <code>array_filter</code> code</p>

<pre><code>function is_txt($file, $user) {
return preg_match('/backup-[0-9]+\.[0-9]+\.[0-9]+_[0-9]{2}-[0-9]{2}-[0-9]{2}_'.$user.'.tar.gz/', $file) &gt; 0;
}

....

$list = ftp_nlist($conn_id, $ftp_dir);
$filtered = array_filter($list, 'is_txt');
if(count($filtered)){
foreach( $filtered as $name =&gt; $file){

echo $file; 
echo "&lt;br&gt;";

}
</code></pre>
