Page 1 of 1

referencing object members

Posted: Thu Dec 18, 2008 12:49 am
by antonmabundo
what is the difference when using the {} in referencing object members:

i would usually do it this way
$object->member;

but i've seen some code doing it this way
$object->{member}

what's the difference? or rather what's the use of the curly brackets {}?