for example i have an object with two members:
object.member1
object.member2

i want to dynamically select either member1 or member2 so i assign to a var the one which i want to select:
whichMember = 'member1'

is this possible like that in php?
object.(whichMember)

like in php's syntax:
$object->$member
hi, thanks for your input.

jonas, yeah. thanks for getting my point. let's see if others know the way.

jeremy, thanks but your still accessing the member directly

richarduie, thanks i'll try this one. if this works. i think this will do