Reputation: 22911
I was wondering if anyone had any experience with thrift and could provide an example of taking a PHP array (or object) and translate it into a C++ array (or object). Either that or point me to documentation on how to do this in PHP (which is incomplete on their website!)
Thanks! Matt Mueller
Upvotes: 0
Views: 650
Reputation: 4236
There's more documentation in the Thrift calculator tutorial. In particular, Thrift's "list" type is likely to be represented as an array in PHP and C++. You can see for yourself how each language binding serializes these data structures in the "protocol" implementations of each language.
Regards, Jeff
Upvotes: 2