P
P
picka2020-12-12 12:35:05
PHP
picka, 2020-12-12 12:35:05

How to display similar json array from mysql using php?

Welcome all!
Such a problem, there is a database with a table of goods, the goods are arranged in a similar way:
5fd48dc889d9a853519696.png
Inside the goods, in the last column there is a json array with the available sizes of the goods.
The question is how to correctly display this whole thing in JSON, because when displaying this entry using php, I get a similar picture:
5fd48e6c6c984701109503.png
(we do not pay attention to the hieroglyphs)
As you can see, the array inside the "size" column is displayed as an object, how to output it as an array.
I apologize in advance, I'm not strong in PHP and sql.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
FanatPHP, 2020-12-12
@picka

Probably, first decode jason, which you stuffed into the database for some reason?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question