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 ?

asked May 19, 2016 at 9:16
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); 
answered May 19, 2016 at 9:23

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

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.