The question is simple. I have a foreach loop in my code:
foreach($array as $element) {
//code
}
In this loop, I want to r
You could remove the first and last elements off the array and process them separately.
Like this:
Removing all the formatting to CSS instead of inline tags would improve your code and speed up load time.
You could also avoid mixing HTML with php logic whenever possible.
Your page could be made a lot more readable and maintainable by separating things like this:
$item['xcatid'])) ;
foreach($subcat as $val) show_subcat($val);
?>
$c['xcollectionid']));
foreach($cat as $item) show_cat($item);
?>