9

The goal is to unserialize a PHP serialized string and get sutable object in C#

Is there any way to make this possible in C#(.Net)?

To be more specific: We need to make an application which comunicates (Via HTTP) to specific website which returns the needed information. Fortunately/unfortunately we dont have permission to website so the data (array mostly) that is returned from website is PHP serialized.

2 Answers 2

2

I suppose using JSON as an intermediary step could be useful.

Sign up to request clarification or add additional context in comments.

2 Comments

Could you be more specific? Thanks :)
Fortunately/unfortunately we dont have permission to website so the data (array mostly) that is returned from website is PHP serialized.
1

You should probably write it to XML or JSON. You can construct your C# object back from the XML

Edit: Looks like there is already a XML serializer for PHP

1 Comment

Fortunately/unfortunately we dont have permission to website so the data (array mostly) that is returned from website is PHP serialized.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.