xmtrinidad
12/28/2017 - 12:48 AM

PHP List

Make a HTML list using PHP

<ul>
    <?php 
    foreach($array as $item) {
        echo "<li>" . $item . "</li>";
    }
    ?>
</ul>