binar binar - 6 months ago 37
PHP Question

How to parse javascript array in php

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 ?

Answer

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

$_data = unserialize($your_data); 
Comments