I have the following HTML inside a PHP while
fault:
<article data-id="1">...</artcile>
<article data-id="2">...</artcile>
<article data-id="3">...</artcile>
<article data-id="4">...</artcile>
<article data-id="5">...</artcile>
<article data-id="6">...</artcile>
<article data-id="7">...</artcile>
<article data-id="8">...</artcile>
<article data-id="9">...</artcile>
<article data-id="10">...</artcile>
<article data-id="11">...</artcile>
<article data-id="12">...</artcile>
<article data-id="13">...</artcile>
<article data-id="14">...</artcile>
<article data-id="..."></artcile>
I would like PHP to select specific results within the loop:
1, 4, 7, 10, 13 ...
It would select 3n+1
exactly.