Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to unserialize

Status
Not open for further replies.

dzon

IS-IT--Management
May 26, 2005
103
GB
The following text is serialized, then base64encoded. How do I unserialize it using PHP?

Tzo4OiJzdGRDbGFzcyI6Mjp7czo5OiJncm91cG1vZGUiO3M6MToiMCI7czoxMzoiYWxsb3dzdHVkZW50cyI7aToxO30=

An example would be much appreciated.

cheers,

Dzon
 
I'd first run the string through base64_decode.

From there, it all depends on how the string was originally serialized, because there's more than one way to do it.

If the string was serialized using PHP's serialize() function, then PHP's unserialize() function.



Want the best answers? Ask the best questions! TANSTAAFL!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top