paginate array before more results php
<?php
$menuItems = array(
"post1" => array(
"title" => "Sample Title",
"utime" => "M/d/Y",
"content" => "<p>Body of the post</p>"
),
"post2" => array(
"title" => "Another Sample Title",
"utime" => "M/d/Y",
"content" => "<p>Content goes here...</p>"
),
);
foreach ($menuItems as $contItem => $item) {
?>
<li>
<a href="dish.php?item=<?php echo $contItem; ?>">
<h1>zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz<?php echo $item["title"]; ?></h1>
<small><?php echo $item["utime"]; ?></small>
</a>
</li>
<?php } ?>