Home > Backend Development > PHP Tutorial > There is a set of data that is greater than or equal to 12, and the specific number is uncertain. I want to get 12 displays every six minutes, and when there are not enough, I have to make up for it. What is the general idea? Help!!!!

There is a set of data that is greater than or equal to 12, and the specific number is uncertain. I want to get 12 displays every six minutes, and when there are not enough, I have to make up for it. What is the general idea? Help!!!!

WBOY
Release: 2016-08-26 10:12:54
Original
876 people have browsed it

For example, there are 15 arrays. The first time is 0-11, the second time is 1-12, the third time is 2-13, the fourth time is 3-14, the fifth time is 4-14. Take 5-0 five times (since there are only 15, you can’t take 12 starting from 5, so you have to take 0 to fill the place), and so on, take it every six minutes, please give a general idea,

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template