public function setSomething($what){
$this->something = $what;
}
...
$obj->setSomething(array('aaa', 'bbb', 'ccc'));
or
public function setSomething(){
$this->something = array_values(func_get_args());
}
...
$obj->setSomething('aaa', 'bbb', 'ccc');
Which method would you use and why?
ps: the second one could also be used to emulate keys I think, if you give out argument names:
$obj->setSomething($key1 = 'aaa', $key = 'bbb', $key = 'ccc');