How to split an array into interval chunks

visit shbcf.ru