Answers for "paginate array before more results php"

PHP
0

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 } ?>
Posted by: Guest on August-19-2021

Browse Popular Code Answers by Language