Serialization
You can also serialise and unserialise your DTOs, using PHP's native methods.
Serialise
$serialised = serialize($person);
Unserialise
$person = unserialize($serialised);
You can also serialise and unserialise your DTOs, using PHP's native methods.
$serialised = serialize($person);
$person = unserialize($serialised);