function reset() { // iterate through the form's controls foreach ($this->controls as $key => $control) { // reference to the control $obj =& $this->controls[$key]; // reset $obj->reset(); } }