How can a pyramid structure be split into two groups of small pyramid (with legends in it )? Similar to this, it is a 30-member structure without a pyramid, and now needs to be split from the red line into two small pyramid.
These 30 people are all traversed from the database and arranged from top to bottom in chronological order from left to right.
Originally, I was trying to split a single pair of data. However, if a single pair of data is split, it is not split from the red line, but every other one, then all the singular and double numbers are combined into two new pyramid. However, such single and double numbers are not split from the red line.
I don't know how to deal with such a split?
Reply to discussion (solution)
$ A = array (,); echo''; For ($ I = 0, $ n = 2; $ I
';} Echo'
'; For ($ I = 0, $ n = 2; $ I
'; Foreach ($ r as $ v) echo join ('', $ v ),'
'; Echo'
'; Echo'
'; Foreach ($ l as $ v) echo join ('', $ v ),'
'; Echo'
';