0

One of queries on my webpage returned var that include data from link:

http://pastebin.com/a1XuhNpF

I think its a javascript array saved in mysql DB, but how to parse it in php controller ?

2
  • 2
    It's not a json array, it looks like serialized PHP. Look at unserialize. Commented May 19, 2016 at 9:18
  • its is not a valid JavaScript array.. Commented May 19, 2016 at 9:25

1 Answer 1

3

Its serializa data , use unserialize http://php.net/manual/en/function.unserialize.php and you can use it

$_data = unserialize($your_data); 
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.