Answer the question
In order to leave comments, you need to log in
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
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 questionAsk a Question
731 491 924 answers to any question