In DB TEXT field i have saves string (polygon coordinates), similar to this: "[[35.408686311173874,-119.14944509590913],[35.408686311173874,-119.14538959587861]]"
What would be the easiest way to convert this string back to actual PHP array like this: [[35.408686311173874,-119.14944509590913],[35.408686311173874,-119.14538959587861]]
, when assigning it to a variable?
When I try to unserialize
I get this error unserialize(): Error at offset 0 of 163 bytes
At fist, I thought it will be easy, but I still haven't found a solution on how to do that. Any thoughts? Thank you.