title: Paging from Array and display ....?
body: <pre><code>   &lt;?php 
  
      $B = array(
        0=&gt;1,
        1=&gt;2,
        2=&gt;3,
        3=&gt;4,
        4=&gt;5,
        5=&gt;6,
        6=&gt;7,
        7=&gt;8,
        8=&gt;9,
        9=&gt;10,
        10=&gt;11
      );
  
      function pagination_from_array($arr, $show_per_page, $page=1){
  
          $start = $show_per_page * ($page-1);
          $end   = $show_per_page * $page;
  
  
           for($i = $start; $i &lt; $end; $i++){
              echo "&gt;&gt;&gt;".$arr[$i]."&lt;br&gt;";
           }
         if($end-1 &lt; count($arr)) {
              echo '............';
          }
  
      }
  
      pagination_from_array($B , 6, $_GET['page']);
      /*
      //Dislay in html table
      //=&gt; page1
          key | value
          0     1
          1     2
          2     3
          3     4
          4     5
          5     6
  
          ........
  
      //=&gt; page 2
          key | value
          6     7
          7     8
          8     9
          9     10
          10    11
         total  1+2+3+..+11
  
      */
  
      ?&gt;
  </code></pre>
  
  <p>Could anyone help me to implement this?</p>