0

Well i got this serialized PHP string: a:1:{s:10:"max_photos";i:10;} is there a way to unserialize it but with JavaScript?

2
  • 4
    Why do you need this? The much better method would be using json_encode() which both languages can deal with natively Commented Oct 19, 2012 at 19:43
  • Actually it's a serialized array... Commented Oct 19, 2012 at 19:44

1 Answer 1

1

You could use the php.js library, or simply replicate the relevant parts, although you should probably be using json_encode() as Pekka mentioned.

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

Comments

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.