note 74447 added to function.serialize
| From: | krisdover at hotmail dot com | Date: | Wed, 11 Apr 2007 21:11:23 +0000 |
| Subject: | note 74447 added to function.serialize | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-125309@lists.php.net to get a copy of this message | ||
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
----
Server IP: 203.202.10.60
Probable Submitter: 125.239.74.214
----
Manual Page -- http://www.php.net/manual/en/function.serialize.php
Edit -- https://master.php.net/note/edit/74447
Del: integrated -- https://master.php.net/note/delete/74447/integrated
Del: useless -- https://master.php.net/note/delete/74447/useless
Del: bad code -- https://master.php.net/note/delete/74447/bad+code
Del: spam -- https://master.php.net/note/delete/74447/spam
Del: non-english -- https://master.php.net/note/delete/74447/non-english
Del: in docs -- https://master.php.net/note/delete/74447/in+docs
Del: other reasons-- https://master.php.net/note/delete/74447
Reject -- https://master.php.net/note/reject/74447
Search -- https://master.php.net/manage/user-notes.php