I tried to do it by myself, but Google doesn't understand me. Question seems easy, unless I couldn't find answer.
I've got some object, and I want to change its value, so I can do it eg.
$obj->field_suffix1 = "Abracadabra";
The problem is that i want to pass "suffix1" from variable, so I would do if it was array
$obj['field_'.$suffix] = "Abracadabra";
Any suggestion? Thank you in advice! Dominik.