Unserialize in Java a serialized php object

前端 未结 15 1049
闹比i
闹比i 2020-11-29 11:31

Does anyone know if it is possible, actually if it has been done, to serialize an object in php and unserialize it in Java (java-php communication). Maybe an adapter will be

15条回答
  •  温柔的废话
    2020-11-29 11:45

    PHP and Java both use their own (obviously different) serialization schemes. You could however use an interchange format both could read and write.

    The two most obvious examples are XML and JSON.

    There are others however such as Google Protocol Buffers.

提交回复
热议问题