Join the Stack Overflow Community
Stack Overflow is a community of 4.7 million programmers, just like you, helping each other.
Join them; it only takes a minute:
Sign up

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 ?

share|improve this question
2  
It's not a json array, it looks like serialized PHP. Look at unserialize. – Jon Stirling May 19 at 9:18
    
its is not a valid JavaScript array.. – Dhara Parmar May 19 at 9:25
    
thanks guys im so dumb sometimes – binar May 19 at 9:26
up vote 2 down vote accepted

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

$_data = unserialize($your_data); 
share|improve this answer
    
Please accept answer if its helpful to you @binar :) – Brijal Savaliya May 19 at 9:26
    
i can do it only after 5 min after post ;p – binar May 19 at 9:28
    
Okay thanks @binar – Brijal Savaliya May 19 at 9:29

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.