Slicing an array by page
<pre><code>function date_compare($a, $b)
    {
        $t1 = strtotime($a['lastEdit']);
        $t2 = strtotime($b['lastEdit']);
        return $t1 - $t2;
    }    
    usort($container, 'date_compare');

    $totalPages = floor($count/12);

    $start = $page * 12 - 11;
    $end = $page * 12;

    $container = array_reverse($container);
    $container = array_slice($container, $start, $end);


    return $container;
</code></pre>

<p>My <code>start</code> doesn't seem to affect the <code>slice</code> method. When I'm on page 2 for example, (start: 13 and end: 24), I still get a <code>array(24)</code> returned. What did I miss?</p>
