That is, put different subnames into the same category
foreach traverses it and writes it into a new array, or if you find it from Mysql, adding a group by in the sql statement can solve your problem faster and better. It is not easy to code. I hope you can adopt it.
foreach traverses it and writes it into a new array, or if you find it from Mysql, adding a group by in the sql statement can solve your problem faster and better. It is not easy to code. I hope you can adopt it.