I have serialized a string in PHP using serialize method
$serializedResult = serialize($value);
How to unserialize this serialized string in Objective-C
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I don’t think there is a serialized PHP object parser for Objective C.
However you could use JSON instead. On the PHP side use
json_encode, and on the Objective C side see: http://blog.zachwaugh.com/post/309924609/how-to-use-json-in-cocoaobjective-cOr as Tommy pointed out the now native implementation: http://developer.apple.com/library/ios/#documentation/Foundation/Reference/NSJSONSerialization_Class/Reference/Reference.html