is there a way to pass an array to a member function?
i tried this code:

```
class Testing
{
   public function set($arr)
   { 
      echo $arr['key'];
   }
}

```

but i got this error: *Undefined index (key)*