Something
public php v1 · immutableclass blahblah.... $this->foofunc_options = array();function add_foofunc_option($key, $value) { this->foofunc_options["$key"] = $value;}function foofunc($args) { extract $args; do_stuff;}add_foofunc_option('action', 'dullerfnask');add_foofunc_option('method', 'havegrød');$this->foofunc($this->foofunc_options);