One of queries on my webpage returned var that include data from link:
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
-
2It's not a json array, it looks like serialized PHP. Look at unserialize.Jonnix– Jonnix2016年05月19日 09:18:31 +00:00Commented May 19, 2016 at 9:18
-
its is not a valid JavaScript array..Dhara Parmar– Dhara Parmar2016年05月19日 09:25:49 +00:00Commented May 19, 2016 at 9:25
1 Answer 1
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
default