I have SQL string that suppose to be an array. I'm quite new in php and sql and can't figure out what to do next. Sorry for noob question.
I have query from sql, it's fine. Via mysql_fetch_array I've got cell I needed. It looks like:
[{"id":"X","value":"Y"}{Same structure}{Same structure}]
As much as I understand this is short syntax array I can use. So I started from this:
while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) {
$extra_fields = $row['extra_fields'];
}
For my understanding right now I declared array. But in the real world I didn't.
var_dump shows me a string. What should I do to declare proper array in cases like this?