Open mindplay-dk opened 6 years ago
Trying out a BC format. Type arguments coming after properties.
echo serialize(new Dictionary<string, Dictionary<string, DateTime>>());
// O:10:"Dictionary":0:{}:2:{i:0;s:6:"string";i:1;O:10:"Dictionary":2:{i:0;s:6:"string";i:1;O:8:"DateTime";}}
/*
O:10:"Dictionary"
:0:{}
:2:{
i:0;s:6:"string";
i:1;O:10:"Dictionary"
:2:{
i:0;s:6:"string";
i:1;O:8:"DateTime";
}
}
*/
How would
serialize()
andunserialize()
work in terms of serializing reified types?