Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

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 } ?>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #paginate #array #results #php
ADD COMMENT
Topic
Name
1+2 =