$struct = new XMLRPCStruct(); $struct->foo = 'bar'; // This is done by __set() and assigns 'bar' into $this->fields['foo']
public function __set($name, $value) { $this->fields[$name] = $value; }