Answer the question
In order to leave comments, you need to log in
How to add a slash for all items except the last one?
I'm not strong in PHP, so I'm asking how to
add
slashes
for the emerging list? The list turns out like
this to make that for the last did not form?
<?if (!empty($categories)): ?>
<div style="margin: 100px 0 33px -40px;">
<ul class="categories1">
<?foreach ($categories as $catId => $cat):?>
<li><a href="<? echo $cat['LINK']?>"><? echo $cat['NAME']; ?></a></li>
<?endforeach;?>
</ul>
</div>
<?endif;?>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question