To access an object member with an illegal character in the name, use this syntax:
$obj->{'illegal-property:name()'}
This is particularly relevant with the dynamically-generated classes used by, for instance, database objects and the SoapClient class.