note 74447 deleted from function.serialize by danbrown
| From: | danbrown@php.net | Date: | Mon, 20 Jun 2011 15:24:47 +0000 |
| Subject: | note 74447 deleted from function.serialize by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-180757@lists.php.net to get a copy of this message | ||
Note Submitter: krisdover at hotmail dot com
----
For anyone looking for a way to import PHP serialized variables into java as java Objects; I have
written a simple class to unserialize strings containing PHP serialized variables. It makes the
follow type mappings:
_PHP_Type_ ---------> _Java_Object_Type_
array java.util.HashMap
int java.lang.Integer
double java.lang.Double
boolean java.lang.Boolean
string java.lang.String
and it does not presently support the PHP Object type.
Download the source code here: http://lappy.gotdns.com/drupal/files/PHPSerialization.java
Regards