binar binar - 1 year ago 123
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 Source

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

$_data = unserialize($your_data);