Unserialize in Java a serialized php object

前端 未结 15 1061
闹比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条回答
  •  萌比男神i
    2020-11-29 12:00

    add into pom.xml

    
        de.ailis.pherialize
        pherialize
        1.2.1
    
    

    then in code use

    MixedArray list = Pherialize.unserialize(data).toArray(); // data is string `enter code here`
    

提交回复
热议问题