referencing object members
Posted: Thu Dec 18, 2008 12:49 am
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 {}?
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 {}?