Answer the question
In order to leave comments, you need to log in
How to convert from string to array in php?
A question.
As a result of the SQL query, I get a line like this:
[{"id":"1","value":""},{"id":"2","value":""},{"id":"3","value":""},{"id":"4","value":""}]
Answer the question
In order to leave comments, you need to log in
By the way, starting with mysql 5.7, you can search the JSON database and work with JSON data at the DB level
https://www.percona.com/live/mysql-conference-2015...
PS sphinx 2.1+ can index JSON
Well, the answer has already been suggested to you how to work with json
Therefore, I think storing JSON in the database is a normal topic only in BLOB fields
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question