how do i add a <br> to an array, of say.. more than 5 items long? so that every time it hits 5 items, it does <br> then continues?
use the [man]count()[/man] function
an example if you could?
<?php if(count(array) >5 ) { // do something } else // do something else } ?>
thanks, ill try that
im not quite getting it
if you could..
here is my output code
$cat_desc = stripslashes($cat_name[cat_title]); $categorie = "[<b>$cat_desc</b>] "; $display .= " $categorie
which supplies [CAT1] [CAT2] [CAT3] [CAT4] [CAT5] here i want <br> [CAT6]