I wonder what is the best format to store PHP objects to database, an object have multiple parameters and methods, XML or binary or other formats?
for example :
$me = new Person();
$me->code= '007';
$me->name='antoine';
$me->store(); //this object is now stored into postgresql in Binary format or XML or ... you tell me !
//after few days :
$object = $database->retrievePersonByCode('007');
echo "my name is".$object->name;
How to do that ?