D
D
Dymok2021-01-31 23:29:40
PHP
Dymok, 2021-01-31 23:29:40

How to parse a string of tree categories?

I took up setting up the export of data from the database. There are goods. They have categories. Categories have subcategories. I found one table in the database with one record with the following content: https://pastebin.com/S8Q9Q4FQ
How can I parse such a string? Is it possible to somehow translate this into an understandable array in order to work with it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vasily Bannikov, 2021-01-31
@UnluckySerivelha

Similar to tab-separated-values. Just split the line by a break and a \t

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question