我有一个简单的旁观:
foreach ( $posts as $index => $posts )
以及反之:
if( $index % 5 + 1 == 5 ) {
//do something
}
我每页有15个员额,除了最后一点点,它应当做些什么,但我如何做?
So it becomes:
POST
POST
POST
POST
POST
DO SOMETHING
POST
POST
POST
POST
POST
DO SOMETHING
POST
POST
POST
POST
POST