Example of serialization with PHP and Thrift.