paginate array before more results php

Solutions on MaxInterview for paginate array before more results php by the best coders in the world

showing results for - "paginate array before more results php"
Effie
30 Feb 2017
1<?php
2$menuItems = array(
3    "post1" => array(
4        "title" => "Sample Title",
5        "utime" => "M/d/Y",
6        "content" => "<p>Body of the post</p>"
7    ),
8
9    "post2" => array(
10        "title" => "Another Sample Title",
11        "utime" => "M/d/Y",
12        "content" => "<p>Content goes here...</p>"
13    ),
14);
15
16foreach ($menuItems as $contItem => $item) {
17?>
18<li>
19     <a href="dish.php?item=<?php echo $contItem; ?>">
20         <h1>zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz<?php echo $item["title"]; ?></h1>
21         <small><?php echo $item["utime"]; ?></small>
22     </a>
23</li>
24<?php } ?>
25