Question: I have an array with 40 elements. I just need to show from array the first set of 10 elements and then show some static row in table. After displaying that static row, I just want to show another set of 10 rows. Like wise I need to show all 40 elements.

Answer: 
You can try

```
$array = range(1,40);
foreach (array_chunk($array, 10) as $current)
{
    foreach($current as $data)
    {
        // Display your Information
    }
}

```
You can try `array_slice` <http://php.net/manual/en/function.array-slice.php>