You may have some arrays like this:

Then you may want to combine them together:

But unfortunately it’s not simple like this… You will get:

Suppose to be 2, right? Why it’s 6… Let’s identify…

But what I want it to be is $School contains $year1 and $year2, and $year1 contains…