How to deserialise PHP Serialized array in C#

Viewed 554

I've got an array string serialised via PHP (Wordpress) similar to the following:

a:2:{i:0;s:12:"Sample array";i:1;a:2:{i:0;s:5:"Apple";i:1;s:6:"Orange";}}

How would I deserialise this string in C#?

If I paste the string into https://www.unserialize.com, it converts the structure fine.

Thanks!

0 Answers
Related