I'm trying to split my array into 3 columns and the remaining that is not divisible by 3 to show as well. Currently it's not displaying. My code as below:
Count value is 8.
for($i=0; $i < count($subscriber); $i++) {
if($i%3==0) $middle_data .= '<tr>';
<td>Array fields goes here</td>
if(($i+1)%3==0) $middle_data .= '</tr>';
}
Currently it shows 2 row but the last row that is not divisible by 3 is not appearing.