Trying to pass a an array_map inside a class. Its returning null.
<p>I have a class with 2 functions. One function has the array map that pass the array to another function within the same class. Unfortunatly the array is dumped as NULL. Any fix?</p>

<pre><code>class filter
    {

      public function filt($value)
      {
        $value =  mysql_escape_string($value);
        $value = trim($value);
         return $value;

      }
        public function passover($variables)
      {
        $variables = array_map("filt",$variables);
        return $variables;

       }

    }
  $filter = new filter();

  $m=    $filter-&gt;passover($arr =array('smith'=&gt;1, 'smith'=&gt;2));
      var_dump($m);
</code></pre>
