Today’s tasks:
1. :
$r = ReflectionClass($obj); // Get the reflection of the object
$r->getProperties(); // Get the property list
$getter = $r->getMethod("get".ucfirst (curr_pro)); // Traverse the attributes and get the getter method
$getter->invoke($obj); // Call the geeter method
to export the xml effect