views:

1179

answers:

1

I have a system that combines the best and worst of Java and PHP. I am trying to migrate a component that was once written in PHP into a Java One.

Does anyone have some tips for how I can parse a PHP serialized datastructure in Java? By serialized I mean output from php's serialize function.

+2  A: 

PHP serializes to a simple text-based format. PHPSerialize looks like a parser written in Java. You can also port the Python implementation to Java -- I doubt it's very complex.

John Millikin
Perfect a library. You're right it's not complex, just didn't want to reinvent the wheel if I didn't have to.thanks.
Allain Lalonde