Say I have:
PHP Code:
obj.one = "Hello, World!"
obj.two = "Goodbye, World!"
obj.three = "Foo"
obj.four = "Bar"
1. How do I loop through it and change "o" to "a"?
2. Make the changed value permanent (i.e. I changed it by reference)
In PHP you, it's basically this:
PHP Code:
$v = (object)array('one' => "foooo", 'two' => "bo");
for( $v => &$val ) {
$val = str_replace('o', $val);
}